Cache

GitHub - magesuite/cache

This module provides improvements to the built-in Magento 2 cache functionality.

 

Installation

This module is part of core metapackage

 

Installation if metapackage is not used:

composer require "creativestyle/magesuite-cache" ^1.0.0

Admin settings

In the admin panel module’s settings can be found in Stores -> Configuration -> Advanced -> System, in the tab: Cache Cleanup Debugger

Settings:

Name

Values

Coment

Name

Values

Coment

Enable Logging

Yes/No 

 

Enables logging all cache cleanups along with stacktraces to var/log/cache_cleanup.log file.

Logging retention period

Default value: 3

How long (in days) logs should be kept

Enable Layout Blocks Cache Tags Preview

Yes/No 

When enabled after adding "show_block_identities=true" to page URL parameters, source code will contain HTML comment with list of all layout blocks and their respective cache tags

 

Additional cache management

Cache clear log

 

Backend

TODO - Add documentation

Frontend

For all pages the following block is added:

<referenceContainer name="content"> <block class="MageSuite\Cache\Block\CacheUrl" name="cache.url" /> </referenceContainer>

 

 

Â