Skip to content

Events for full measure static cache file writes and deletes #1497

Open
statamic/cms
#15954

Description

@daun

We'd like to keep extra files next to full measure static cache pages and update them whenever a page is written or deleted:

  • Markdown version about.md for agents
  • Precompressed version about.html.br for avoiding nginx compression on the fly

Right now the only way to do this is to override the whole file driver with StaticCache::extend('file', ...). A second addon doing the same replaces the first.

Proposal: fire StaticCacheFileWriting, StaticCacheFileWritten and StaticCacheFileDeleting from FileCacher.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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