Autoflushcache
yireo/magento2-autoflushcache
Automatically flushes Magento 2 caches (config, block_html, full_page) after saving system configuration. Useful for development environments to avoid manual cache flushing.
Supported Magento versions: 2.4.9
14,928 installs★ 28 starsLatest: v2.0.2Released 2023-09-27License: OSL-3.0
composer require yireo/magento2-autoflushcacheREADME
Reproduced from the package’s own README, under its own license, as of 2026-09-13. Links and images point back at the source repository.
Magento 2 module to automatically flush the cache whenever you save something in the System Configuration.
Do NOT use this in production.
When saving the System Configuration within Magento 2, the core behaviour is to add a reminder in the backend that you should manually flush the cache. In production, this is a good practice: Instead of flushing the cache with every change, the cache is only flushed when needed. In development, I always keep caching on, and then this becomes annoying. This module automatically flushes the cache for you.
Install this module within Magento 2 using composer:
composer require yireo/magento2-autoflushcache --dev
bin/magento module:enable Yireo_AutoFlushCache
This module listens to the event
controller_action_postdispatch_adminhtml_system_config_save. Whenever
it is called, it flushes the following caches:
configblock_htmlfull_page
Links
- Packagist
- PackageMaven — quality data by PackageMaven
- Repository
- Issues