Skip to content
This repository was archived by the owner on Nov 13, 2025. It is now read-only.
This repository was archived by the owner on Nov 13, 2025. It is now read-only.

Webpage Templates save on every pageview #21

@dotJoel

Description

@dotJoel

There are a couple queries that are running on every pageview that technically shouldn't be.

The theme files are being saved to the Webpage table.

What needs to happen is:
Webpage->syncFiles() (in WebpagesAppModel) needs to first be comparing the last modified timestamp of the template files to the last modified timestamp in the database, for the corresponding file.

If the file has changed recently, and the database record is older than the file, then we should be saving it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions