qbus / autoflush
Automatic cache flush for menus and levelmedia
Installs: 3 218
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- typo3/cms-backend: ^12.4
- typo3/cms-core: ^12.4
- typo3/cms-extbase: ^12.4
- typo3/cms-extensionmanager: ^12.4
- typo3/cms-frontend: ^12.4
README
This extension adds the required bits to enable cache flushes not implemented by the TYPO3 core.
It hooks into frontend rendering and backend data handling – this is to add cache tags while rendering which will be flushed by the backend data handling hooks.
Currently supported features:
- Menu flush for page-related operations: add, remove, rename, hide, time-based (un)publish
- Subtree flushing when pages.media is changed (for the usecase where header images are inherited using levelmedia)
Configuration
For the basic functionality no configuration is required. Just install the extension and stop using the "flush frontend caches" button whenever you rename, delete, hide or add a page.
composer require qbus/autoflush
Cache flush for time-based page publishing
There's an extbase command controller which should be run from a cronjob (directly or indirectly through the scheduler). The command controller will clear the cache for all pages that render references (menus) to pages that are published by time.
typo3/sysext/core/bin/typo3 autoflush:clearmenuforpulishedpages
The command will flush references for new/expired pages since the last and the current run of the command. Therefore you should run this command frequently to reduce the time where menu's are out-of-date.
TODO
- Category based menus
- create menu_pid_ tags for pages that could eventually render a submenu (but do not have child pages yet)