Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

CustomCache

No security coverage Under active development 123 sites

This module allows you to replace permanent caches with time-limited caches. This is useful for large sites to prevent the database from growing excessively large due to unlimited page caches.

πŸ‡ΊπŸ‡¦

This module is maintained by Ukrainian developers.
Please consider supporting Ukraine in a fight for their freedom and safety of Europe.

Custom cache module adds possibility to replace permanent caches to time limited caches. It's usefull for sites with a lot of nodes, drupal generates a lot of page caches without time limit which significantly increase a DB size with time.

Installation

Install it via composer like any other drupal module and add a configuration to a settings.php

Configuration

You need to add a configuration to your settings.php:

Setup a cache time limit, as example for one day:
$settings['custom_cache_melt_time'] = 86400;

Add a cache backend service:

$settings['cache']['bins']['render'] = 'cache.backend.custom_cache';
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.custom_cache';
$settings['cache']['bins']['page'] = 'cache.backend.custom_cache';

Exclude cids which we want to save:

$settings['custom_cache_exclude_cids'] = [
  '/node/',
  '/taxonomy/term/',
  '/sites/default/files/',
  '/user/'
];
Drupal 8–11

Ask your assistant about CustomCache

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Oct 2023
Latest release
8 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.0.2 Stable 8–11 Feb 10, 2026
1.0.1 Stable 8–10 Oct 25, 2023