Slushi cache
Categories
Component ID
2819303
Component name
Slushi cache
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
8698
Component created
Component changed
Component body
This project is obsolete - the functionality to keep the size of cache tables down exists in Drupal core from 8.4.0
A Drupal database cache backend where permanent is really only semi-permanent.
If you're using a database based cache backend and seeing tables like {cache_render} and {cache_dynamic_page_cache} grow over time, then this might be the module for you.
Installation
Download and enable the module.
Configuration
In your settings.php customise the lifetime like so:
$settings['slushi_cache_melt_time'] = 86400;
// Setup the bins where you want permanent entries to melt.
$settings['cache']['bins']['render'] = 'cache.backend.slushi';
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.slushi';
Where the lifetime is the actual maximum permanent age in seconds.
You can find the cache bin names in your core.services.yml.
This module will be redundant on Drupal core > 8.4.0 as #2526150: Database cache bins allow unlimited growth: cache DB tables of gigabytes! is in core.
