Skip to content
Snippets Groups Projects
Unverified Commit 1e37fc80 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #1596472 follow-up by tacituseu: Replace hard coded static cache of...

Issue #1596472 follow-up by tacituseu: Replace hard coded static cache of entities with cache backends
parent a4ee1b1b
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -2,6 +2,7 @@
namespace Drupal\Core\Cache\MemoryCache;
use Drupal\Component\Assertion\Inspector;
use Drupal\Core\Cache\MemoryBackend;
/**
......@@ -47,7 +48,7 @@ protected function prepareItem($cache, $allow_invalid = FALSE) {
* {@inheritdoc}
*/
public function set($cid, $data, $expire = MemoryCacheInterface::CACHE_PERMANENT, array $tags = []) {
assert('\Drupal\Component\Assertion\Inspector::assertAllStrings($tags)', 'Cache Tags must be strings.');
assert(Inspector::assertAllStrings($tags), 'Cache tags must be strings.');
$tags = array_unique($tags);
$this->cache[$cid] = (object) [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment