Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Database cache prefix

Security covered Under active development 146 sites

This module prevents stale cache data in shared database cache environments by adding a unique prefix to cache entries for each Drupal instance. This ensures that different deployments or versions of your site do not interfere with each other's caches.

On cloud environments, the database cache is shared between different Drupal instances. Some instances may have an updated codebase (like during a new deployment), this means that the cache can contain stale data.

To avoid this, this module sets a cache prefix to make sure that the cache is only visible by the correct Drupal instance.

How to use it

Install the module like any other module.

Then, in the settings.php file, add the following line:

$settings['db_cache_prefix'] = 'my_prefix';

db_cache_prefix can be any string, but it makes sense to set it to some value derived from the actual deployment ID.

Ask your assistant about Database cache prefix

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
Jan 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Active

Releases

Version Type Core PHP Release date
2.0.0-rc3 Pre-release 10–11 Feb 28, 2025
1.0.0-rc2 Pre-release 8–10 Jan 28, 2023