Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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:

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',
],
],
];
?>
```