Unverified Commit 1e37fc80 authored by alexpott's avatar alexpott

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
......@@ -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) [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment