AutoClear - Hooks 

Three AutoClear mechanisms are implemented:

  • Page update
  • File Overwrite
  • Cache tag flush

Page Update 

This hook listens on the DataHandler->clearCachePostProc interface.

It will only clear the page itself, when the page or its elements are edited (created/updated/deleted). It will not clear subpages and file resources (non-recursive).

File Replace 

View of File list context menu showing Myra clear cache option

Using the option "Replace" in FileList will trigger this hook. This also clears processed files from the cache.

Cache Tag Flush 

TYPO3 tags every cached page with cache tags (its own page ID, the tables/records rendered on it, etc.) and flushes pages by tag whenever a change makes them outdated - independently of, and often covering more pages than, the Page Update hook above (e.g. when a record is shared across several pages).

This extension registers its own cache ( myracloud ) as a member of TYPO3's pages cache group. Whenever that group is flushed:

  • by cache tag, the page that was cached under that tag is cleared in Myra Cloud,
  • entirely (e.g. "Flush all caches"), all pages are cleared in Myra Cloud.