diff --git a/core/core.services.yml b/core/core.services.yml index c06c3b6..a666703 100644 --- a/core/core.services.yml +++ b/core/core.services.yml @@ -111,6 +111,7 @@ services: class: Drupal\Core\Cache\CacheBackendInterface tags: - { name: cache.bin, default_backend: cache.backend.chainedfast } + - { name: cache_tags } factory_method: get factory_service: cache_factory arguments: [discovery] diff --git a/core/lib/Drupal/Core/Cache/ApcuBackend.php b/core/lib/Drupal/Core/Cache/ApcuBackend.php index ec612eb..50fb0fd 100644 --- a/core/lib/Drupal/Core/Cache/ApcuBackend.php +++ b/core/lib/Drupal/Core/Cache/ApcuBackend.php @@ -10,7 +10,7 @@ /** * Stores cache items in the Alternative PHP Cache User Cache (APCu). */ -class ApcuBackend implements CacheBackendInterface, CacheTagInvalidationInterface { +class ApcuBackend implements CacheBackendInterface { /** * The name of the cache bin to use. diff --git a/core/lib/Drupal/Core/Cache/CacheBackendInterface.php b/core/lib/Drupal/Core/Cache/CacheBackendInterface.php index 4de8e23..fd1ae87 100644 --- a/core/lib/Drupal/Core/Cache/CacheBackendInterface.php +++ b/core/lib/Drupal/Core/Cache/CacheBackendInterface.php @@ -18,7 +18,7 @@ * * @ingroup cache */ -interface CacheBackendInterface { +interface CacheBackendInterface extends CacheTagInvalidationInterface { /** * Indicates that the item should never be removed unless explicitly deleted. diff --git a/core/lib/Drupal/Core/Cache/ChainedFastBackend.php b/core/lib/Drupal/Core/Cache/ChainedFastBackend.php index 76414fc..f0b1986 100644 --- a/core/lib/Drupal/Core/Cache/ChainedFastBackend.php +++ b/core/lib/Drupal/Core/Cache/ChainedFastBackend.php @@ -41,7 +41,7 @@ * * @ingroup cache */ -class ChainedFastBackend implements CacheBackendInterface, CacheTagInvalidationInterface { +class ChainedFastBackend implements CacheBackendInterface { /** * Cache key prefix for the bin-specific entry to track the last write. diff --git a/core/lib/Drupal/Core/Cache/DatabaseBackend.php b/core/lib/Drupal/Core/Cache/DatabaseBackend.php index e6bada8..0ef37d7 100644 --- a/core/lib/Drupal/Core/Cache/DatabaseBackend.php +++ b/core/lib/Drupal/Core/Cache/DatabaseBackend.php @@ -19,7 +19,7 @@ * * @ingroup cache */ -class DatabaseBackend implements CacheBackendInterface, CacheTagInvalidationInterface { +class DatabaseBackend implements CacheBackendInterface { /** * @var string diff --git a/core/lib/Drupal/Core/Cache/MemoryBackend.php b/core/lib/Drupal/Core/Cache/MemoryBackend.php index e03660f..23fddc5 100644 --- a/core/lib/Drupal/Core/Cache/MemoryBackend.php +++ b/core/lib/Drupal/Core/Cache/MemoryBackend.php @@ -17,7 +17,7 @@ * * @ingroup cache */ -class MemoryBackend implements CacheBackendInterface, CacheTagInvalidationInterface { +class MemoryBackend implements CacheBackendInterface { /** * Array to store cache objects. diff --git a/core/lib/Drupal/Core/Cache/NullBackend.php b/core/lib/Drupal/Core/Cache/NullBackend.php index c54e1a8..fb898de 100644 --- a/core/lib/Drupal/Core/Cache/NullBackend.php +++ b/core/lib/Drupal/Core/Cache/NullBackend.php @@ -20,7 +20,7 @@ * * @ingroup cache */ -class NullBackend implements CacheBackendInterface, CacheTagInvalidationInterface { +class NullBackend implements CacheBackendInterface { /** * Constructs a NullBackend object. diff --git a/core/lib/Drupal/Core/Cache/PhpBackend.php b/core/lib/Drupal/Core/Cache/PhpBackend.php index 699e9e7..e188ffb 100644 --- a/core/lib/Drupal/Core/Cache/PhpBackend.php +++ b/core/lib/Drupal/Core/Cache/PhpBackend.php @@ -23,7 +23,7 @@ * * @ingroup cache */ -class PhpBackend implements CacheBackendInterface, CacheTagInvalidationInterface { +class PhpBackend implements CacheBackendInterface { /** * @var string