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

Overview

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
You might also like...
Magento 2 Italian Language Pack is special gift for Magento 2 Community Edition. The data of the translation is supplied by Magento 2 Translation Project of Crowdin site, on which you will contribute into the project and download the zip file to install on your own store. This knowledge base will include full of the clear guides that supports you to convert the default language (English) into Italian language on your entire store.
Rah cache - Cache Textpattern's dynamic pages as flat files

rah_cache Packagist | Issues Rah_cache is a simple, experimental full-page caching plugin for Textpattern CMS. It caches Texpattern’s dynamic pages as

Etc cache - Cache plugin for Textpattern CMS

etc_cache Download | Packagist This Textpattern plugin provides an events-driven cache solution for Textpattern CMS. Textpattern is fast, but when you

The Cache component provides an extended PSR-6 implementation for adding cache to your applications.

Symfony PSR-6 implementation for caching The Cache component provides an extended PSR-6 implementation for adding cache to your applications. It is de

now you can save MentionedMessage in UI
now you can save MentionedMessage in UI

General now you can save MentionedMessage in UI Example: You Chat Hi @MulqiGaming @Friends it will be save Message later to MulqiGaming and Friends Co

In order to use the Korean Language on your Magento 2 store, it is time to start with Magento 2 Korean Language Pack in the set of informative documentations by Mageplaza. Magento 2 Korean Language Package is published by Magento 2 Translation Project at Crowdin, so all phrases will be replaced by the Korean language according to the contribution to that project. Please following up the guides in this post to convert the language with ease!
Magento 2 Module Experius Page Not Found 404. This module saves all 404 url to a database table

Magento 2 Module Experius Page Not Found 404 This module saves all 404 urls to a database table. Adds an admin grid with 404s It includes a count so y

Basing on Magento 2 Translation Pack at Crowdin, Magento 2 Slovak Language Pack is buit by Mageplaza team to promote the performance of your storefront when you want to develop the own eCommerce business in the Slovakia market. Rather than the English language, you should consider Slovak language to apporach the domestic customers.
A collection of command line scripts for Magento 2 code generation, and a PHP module system for organizing command line scripts.

What is Pestle? Pestle is A PHP Framework for creating and organizing command line programs An experiment in implementing python style module imports

Comments
  • Magento 2.2.1 Compatibility

    Magento 2.2.1 Compatibility

    $ composer require yireo/magento2-autoflushcache --dev
    Using version ^0.1.0 for yireo/magento2-autoflushcache
    ./composer.json has been updated
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - Installation request for yireo/magento2-autoflushcache ^0.1.0 -> satisfiable by yireo/magento2-autoflushcache[0.1.0].
        - Conclusion: remove magento/framework 101.0.1
        - Conclusion: don't install magento/framework 101.0.1
        - yireo/magento2-autoflushcache 0.1.0 requires magento/framework 100.* -> satisfiable by magento/framework[100.0.2, 100.0.3, 100.0.4, 100.0.5, 100.0.6, 100.0.7, 100.0.8, 100.0.9, 100.1.0, 100.0.10, 100.0.11, 100.1.1, 100.0.12, 100.1.2, 100.1.3, 100.0.13, 100.1.4, 100.0.14, 100.1.5, 100.0.15, 100.1.6, 100.1.7, 100.0.16, 100.0.17, 100.1.8, 100.1.9, 100.0.18, 100.0.19, 100.1.10].
        - Can only install one of: magento/framework[101.0.1, 100.0.2].
        - Can only install one of: magento/framework[101.0.1, 100.0.3].
        - Can only install one of: magento/framework[101.0.1, 100.0.4].
        - Can only install one of: magento/framework[101.0.1, 100.0.5].
        - Can only install one of: magento/framework[101.0.1, 100.0.6].
        - Can only install one of: magento/framework[101.0.1, 100.0.7].
        - Can only install one of: magento/framework[101.0.1, 100.0.8].
        - Can only install one of: magento/framework[101.0.1, 100.0.9].
        - Can only install one of: magento/framework[101.0.1, 100.1.0].
        - Can only install one of: magento/framework[101.0.1, 100.0.10].
        - Can only install one of: magento/framework[101.0.1, 100.0.11].
        - Can only install one of: magento/framework[101.0.1, 100.1.1].
        - Can only install one of: magento/framework[101.0.1, 100.0.12].
        - Can only install one of: magento/framework[101.0.1, 100.1.2].
        - Can only install one of: magento/framework[101.0.1, 100.1.3].
        - Can only install one of: magento/framework[101.0.1, 100.0.13].
        - Can only install one of: magento/framework[101.0.1, 100.1.4].
        - Can only install one of: magento/framework[101.0.1, 100.0.14].
        - Can only install one of: magento/framework[101.0.1, 100.1.5].
        - Can only install one of: magento/framework[101.0.1, 100.0.15].
        - Can only install one of: magento/framework[101.0.1, 100.1.6].
        - Can only install one of: magento/framework[101.0.1, 100.1.7].
        - Can only install one of: magento/framework[101.0.1, 100.0.16].
        - Can only install one of: magento/framework[101.0.1, 100.0.17].
        - Can only install one of: magento/framework[101.0.1, 100.1.8].
        - Can only install one of: magento/framework[101.0.1, 100.1.9].
        - Can only install one of: magento/framework[101.0.1, 100.0.18].
        - Can only install one of: magento/framework[101.0.1, 100.0.19].
        - Can only install one of: magento/framework[101.0.1, 100.1.10].
        - Installation request for magento/framework (locked at 101.0.1) -> satisfiable by magento/framework[101.0.1].
    
    
    Installation failed, reverting ./composer.json to its original content.
    
    opened by ilevennet 1
  • Configure Renovate

    Configure Renovate

    Mend Renovate

    Welcome to Renovate! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.

    🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.


    Detected Package Files

    • composer.json (composer)

    Configuration

    🔡 Renovate has detected a custom config for this PR. Feel free to ask for help if you have any doubts and would like it reviewed.

    Important: Now that this branch is edited, Renovate can't rebase it from the base branch any more. If you make changes to the base branch that could impact this onboarding PR, please merge them manually.

    What to Expect

    It looks like your repository dependencies are already up-to-date and no Pull Requests will be necessary right away.


    ❓ Got questions? Check out Renovate's Docs, particularly the Getting Started section. If you need any further assistance then you can also request help here.


    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
Releases(0.1.1)
Owner
Yireo
Developing extensions, training developers
Yireo
A Laravel package which helps you to flush sessions with an artisan command.

A simple laravel Package to flush sessions via artisan command. Sometimes we store data on sessions such as cart data or maybe any information regardi

Erfan Ahmed Siam 5 Jun 1, 2023
Automatically load the next page of products in Magento. Easy to install and configure, this module works 100% out of the box with vanilla Magento 1.9.x and earlier.

Automatically load the next page of products in Magento. Easy to install and configure, this module works 100% out of the box with vanilla Magento 1.9.x and earlier.

Strategery 123 Nov 20, 2021
The swiss army knife for Magento developers, sysadmins and devops. The tool provides a huge set of well tested command line commands which save hours of work time. All commands are extendable by a module API.

netz98 magerun CLI tools for Magento 2 The n98 magerun cli tools provides some handy tools to work with Magento from command line. Build Status Latest

netz98 758 Dec 28, 2022
Rah cache minify - HTML compressor module for rah cache Textpattern CMS plugin

Minify module for rah_cache This is a minify module for rah_cache, a full-page caching solution for Textpattern CMS. Rah_cache_minify will minify HTML

Jukka Svahn 1 Feb 13, 2014
UpDown is an uptime monitor, We send out notifications when something's wrong.

About UpDown Updown is an uptime monitor, We send out notifications when something's wrong. Be the first to know that your website is down! Reliable m

Hussam Adil 4 May 8, 2022
A tidy conditional Blade directive for checking if something is in an array

A tidy conditional Blade directive for checking if something is in an array. This package provides a small @in directive that allows you to simplify i

Ryan Chandler 0 Oct 7, 2022
QuidPHP/Main is a PHP library that provides a set of base objects and collections that can be extended to build something more specific.

QuidPHP/Main is a PHP library that provides a set of base objects and collections that can be extended to build something more specific. It is part of the QuidPHP package and can also be used standalone.

QuidPHP 4 Jul 2, 2022
Magento 2 module for displaying additional information in configuration

AvS_ScopeHint for Magento 2 Displays a hint when a configuration value is overwritten on a lower scope (website or store view). Facts version: 1.0.0-b

Andreas von Studnitz 131 Dec 14, 2022
Magento n98-magerun module for importing and exporting configuration data

Magento n98-magerun module for importing and exporting configuration data. Import supports hierarchical folder structure and of course different environments.

Zookal 61 Apr 1, 2022
A Magento 1.x module which facilitates automatic purging of static assets from HTTP caches such as browser cache, CDN, Varnish, etc using best practices outlined within the HTML5 boilerplate community.

Magento Cachebuster Cachebuster is a Magento module which facilitates automatic purging of static assets from HTTP caches such as browser cache, CDN,

Gordon Knoppe 129 Apr 1, 2022