Download the PHP package brocode/module-adminhtml-cache-eviction without Composer

On this page you can find all versions of the php package brocode/module-adminhtml-cache-eviction. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-adminhtml-cache-eviction

BroCode_AdminhtmlCacheEviction

Adds quick-action links directly to the Magento 2 admin cache-invalidated notification bar — the yellow warning that appears after saving a configuration value or any other action that invalidates caches. Admins can act on the spot without navigating to Cache Management.

Module page: brocode.at/modules/module-adminhtml-cache-eviction/


Why

The default notification reads:

One or more of the Cache Types are invalidated: config, full_page. Please go to Cache Management and refresh cache types.

That means two clicks and a page load before anything happens. This module appends the action links inline so the fix is one click from wherever the admin already is.


What it adds

Three links are appended to the notification (each only rendered when the current admin user has the required permission):

Link Action ACL resource
Refresh Invalidated Caches Cleans only the currently-invalidated cache types Magento_Backend::refresh_cache_type
Flush Magento Cache Flushes all Magento cache frontends Magento_Backend::flush_magento_cache
Flush Cache Storage Flushes the underlying cache storage backend Magento_Backend::flush_cache_storage

The "Refresh Invalidated Caches" action is a dedicated GET controller that reads the live invalidated type list and cleans only those — no manual type selection needed.


Install

Drop the module into app/code/BroCode/AdminhtmlCacheEviction, then:

Or via Composer once the package is published:


Verify

  1. Log in to the admin panel.
  2. Go to Stores → Configuration, change any setting, and save.
  3. The yellow notification bar should now read something like:

    One or more of the Cache Types are invalidated: config. Please go to Cache Management and refresh cache types. Quick actions: Refresh Invalidated Caches | Flush Magento Cache | Flush Cache Storage

  4. Click Refresh Invalidated Caches — you land on the Cache Management page with a success message and the notification is gone.

To test permission gating, assign the admin user a role that lacks Magento_Backend::flush_magento_cache and confirm the "Flush Magento Cache" link is absent while the others remain.


Notes


File tree


All versions of module-adminhtml-cache-eviction with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0||~8.2.0||~8.3.0||~8.4.0
magento/framework Version >=103.0.0
magento/module-admin-notification Version *
magento/module-backend Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package brocode/module-adminhtml-cache-eviction contains the following files

Loading the files please wait ...