Yireo_AutoFlushCache

PHP 8.1 - 8.4
Magento 2.4.7 | 2.4.8
CSP Yes
Latest Release 2.0.2

Magento version PHP version License Latest Version

Magento 2 module to automatically flush the cache whenever you save something in the System Configuration.

Do NOT use this in production.

Overview

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.

Installation

Install this module within Magento 2 using composer:

composer require yireo/magento2-autoflushcache --dev
bin/magento module:enable Yireo_AutoFlushCache

Technical architecture

This module listens to the event controller_action_postdispatch_adminhtml_system_config_save. Whenever it is called, it flushes the following caches:

  • config
  • block_html
  • full_page

Current status

Static Tests Unit Tests Integration Tests Playwright DI Compilation

Support

For getting support, create an Issue under the following project URL:

https://github.com/yireo/Yireo_AutoFlushCache

Composer details
Magento module name
Yireo_AutoFlushCache
Composer name
yireo/magento2-autoflushcache
Composer version
2.0.2
Default branch
master
Requirements
magento/framework: ^100.1|^101.0|^102.0|^103.0
php: >=8.2 <8.6
Releases
2.0.2 23 October 2026
0.1.1 23 October 2026
0.1.0 23 October 2026
Changelog

[2.0.2] - 27 September 2023

Fixed

  • Remove PHP dep from composer
  • Fixed dynamic properties under PHP 8.0+

[2.0.1] - 29 July 2020

Added

  • Magento 2.4 compatibility

[2.0.0] - July 2019

Added

  • Initial public release

Last modified: October 17, 2026