Feature #94478
closed
Clear pages caches on referenced file replace
Added by Ian Solo over 3 years ago.
Updated over 2 years ago.
Description
When the editor replaces (or edit) a file that is referenced in any records, the caches should be cleared as if these records had changed.
- Related to Bug #91169: Replace file does not invalidate page cache added
- Related to Bug #95759: Clearing cache of pages where file is linked if file was replaced added
I just found this extension Cache optimizer (not tested) that does this and more. From the manual:
It uses an enhanced tag handling to clear the cache in these use cases:
- When a content element is changed the cache of all pages is cleared where this content element is referenced by a shortcut.
- When a file or the metadata of a file is changed the cache of all pages is cleared where this file is used in the page properties or in content elements.
- When a file is changed the directory is detected and the cache of all pages is cleared where a folder collection references it.
- When a record of an Extension is changed the cache of all pages is cleared where a related plugin is used.
IMHO these features should be in the core.
- Status changed from New to Closed
Closed as duplicate of Bug #91169: Replace file does not invalidate page cache. Please do a code review there!
Also available in: Atom
PDF