{"id":15173128,"url":"https://github.com/derhasi/cache_split","last_synced_at":"2025-10-01T10:31:25.697Z","repository":{"id":56966009,"uuid":"84216745","full_name":"derhasi/cache_split","owner":"derhasi","description":"A cache backend for Drupal to split cache items in separate backends. Moved to drupal.org:","archived":true,"fork":false,"pushed_at":"2017-10-09T09:30:13.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"8.x-1.x","last_synced_at":"2024-12-17T09:24:04.742Z","etag":null,"topics":["drupal","drupal-module","drupal8"],"latest_commit_sha":null,"homepage":"https://www.drupal.org/project/cache_split","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derhasi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-07T15:43:27.000Z","updated_at":"2023-01-28T20:31:13.000Z","dependencies_parsed_at":"2022-08-21T06:10:20.187Z","dependency_job_id":null,"html_url":"https://github.com/derhasi/cache_split","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhasi%2Fcache_split","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhasi%2Fcache_split/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhasi%2Fcache_split/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhasi%2Fcache_split/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derhasi","download_url":"https://codeload.github.com/derhasi/cache_split/tar.gz/refs/heads/8.x-1.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234858841,"owners_count":18897818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drupal","drupal-module","drupal8"],"created_at":"2024-09-27T10:41:19.701Z","updated_at":"2025-10-01T10:31:20.416Z","avatar_url":"https://github.com/derhasi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cache_split\n\nThe module provides a cache backend for Drupal to split cache items of a single bin\ninto separate backends.\n\n## Installation\n\n1. Download cache_split module or [add it via composer](https://www.drupal.org/docs/develop/using-composer/using-composer-to-manage-drupal-site-dependencies)\n2. Enable `cache_split` module (e.g. `drush en cache_split`)\n3. Change the cache backend for your bin (e.g. `render`) in your _settings.php_\n```php\n\u003c?php\n$settings['cache']['bins']['render'] = 'cache.backend.split';\n?\u003e\n```\n4. Add split configuration for your bin to the _settings.php_:\n\n```php\n\u003c?php\n$settings['cache_split']['render'] = [\n  //..\n];\n```\n\nSee _Configuration_ below for details.\n\n## Configuration\n\nThe configuration for a cache bin has to be defined in the _settings.php_:\n```php\n\u003c?php\n$settings['cache_split']['NAME_OF_CACHE_BIN'] = [\n  //..\n];\n```\n\n### Matcher definition\n\nEach bin can hold multiple matcher definitions, each may consists of:\n\n* `backend`: Name of the cache backend service to use (e.g. `cache.backend.database`).\n   If not given it defaults to the key of the definition.\n* `includes`: Array of cid patterns this backend should be used for. If this is\n   empty all cids are included (except those excluded by `excludes`).\n* `excludes`: Array of cid patterns this backend should **not** be used for\n\n#### Wildcard syntax\n\nA cid pattern may use `*` to match any number of arbitrary characters.\n\n#### Fallback cache backend\n\nA fallback backend can be defined by simply omitting `includes` and `excludes` or\nleaving them empty.\n\nMake sure the fallback backend is defined last, so the other definitions are\nconsidered.\n\nIn case no fallback backend is specified, `cache.backend.database`\nis set as default.\n\n### Example\n\n```php\n\u003c?php\n$settings['cache_split'] = [\n  // Splits render cache in multiple backends.\n  'render' =\u003e [\n    // Do not cache render results for paragraphs, as they are only rendered in\n    // context of the host entity.\n    [\n      'backend' =\u003e 'cache.backend.null',\n      'includes' =\u003e [\n        'entity_view:paragraph:*'\n      ],\n      'excludes' =\u003e [],\n    ],\n    // Falls back to database backend.\n    [\n      'backend' =\u003e 'cache.backend.database',\n    ],\n  ],\n];\n?\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhasi%2Fcache_split","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderhasi%2Fcache_split","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhasi%2Fcache_split/lists"}