Skip to content

Adding new pages and resources may not clear cache (or may pollute it) #29

@robotpony

Description

@robotpony

As LemonSync operates asynchronously, it's possible for local changes to be sync'd before they're ready, or for the changes to pollute/occlude other items in the cache.

Cases:

  • Copying a page template isn't atomic, and may sync in various states
    • Copied template sync'd before header is updated, and header URL occludes another page template's URL (i.e., the same URL due to copying or other mistake). New page makes old page inaccessible until cache is cleared.
    • Page template name and/or filename may occlude files in cache or listing
  • Certain changes that affect template headers or filenames may result in similar issues

Once the files are corrected and synchronized, clearing the site cache fixes all issues observed.

There may be other side-effects in synchronizing partly-done copies. Ideally, LemonSync should not synchronize files in a few cases:

  • where file, key, or folder names collide
  • where headers are incomplete

Additionally, LemonSync should clear the entire cache in these special cases:

  • new file of any sort
  • changes to manifest or options
  • any full sync (e.g., replace upstream)

Metadata changes (manifest and options) may require a special reload beyond clearing the cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions