Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derhasi/cache_split
A cache backend for Drupal to split cache items in separate backends. Moved to drupal.org:
https://github.com/derhasi/cache_split
drupal drupal-module drupal8
Last synced: 15 days ago
JSON representation
A cache backend for Drupal to split cache items in separate backends. Moved to drupal.org:
- Host: GitHub
- URL: https://github.com/derhasi/cache_split
- Owner: derhasi
- License: gpl-3.0
- Archived: true
- Created: 2017-03-07T15:43:27.000Z (almost 8 years ago)
- Default Branch: 8.x-1.x
- Last Pushed: 2017-10-09T09:30:13.000Z (over 7 years ago)
- Last Synced: 2024-12-17T09:24:04.742Z (about 2 months ago)
- Topics: drupal, drupal-module, drupal8
- Language: PHP
- Homepage: https://www.drupal.org/project/cache_split
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cache_split
The module provides a cache backend for Drupal to split cache items of a single bin
into separate backends.## Installation
1. Download cache_split module or [add it via composer](https://www.drupal.org/docs/develop/using-composer/using-composer-to-manage-drupal-site-dependencies)
2. Enable `cache_split` module (e.g. `drush en cache_split`)
3. Change the cache backend for your bin (e.g. `render`) in your _settings.php_
```php```
4. Add split configuration for your bin to the _settings.php_:```php
[
// Do not cache render results for paragraphs, as they are only rendered in
// context of the host entity.
[
'backend' => 'cache.backend.null',
'includes' => [
'entity_view:paragraph:*'
],
'excludes' => [],
],
// Falls back to database backend.
[
'backend' => 'cache.backend.database',
],
],
];
?>
```