Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yireo/Yireo_AutoFlushCache
Magento 2 module to automatically flush the cache whenever you save something in the System Configuration
https://github.com/yireo/Yireo_AutoFlushCache
magento2-module
Last synced: about 1 month ago
JSON representation
Magento 2 module to automatically flush the cache whenever you save something in the System Configuration
- Host: GitHub
- URL: https://github.com/yireo/Yireo_AutoFlushCache
- Owner: yireo
- Created: 2017-01-28T13:34:36.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-27T10:29:25.000Z (about 1 year ago)
- Last Synced: 2024-10-12T23:06:38.591Z (2 months ago)
- Topics: magento2-module
- Language: PHP
- Homepage:
- Size: 11.7 KB
- Stars: 26
- Watchers: 6
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
- awesome-magento2 - Auto Cache Flush - Magento 2 module to automatically flush the cache. (Open Source Extensions / Development Utilities)
- awesome-magento2 - Auto Cache Flush - Magento 2 module to automatically flush the cache. (Open Source Extensions / Development Utilities)
README
# Yireo AutoFlushCache
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`