/** * {@inheritdoc} */ public function resetCache(array $ids = NULL) { if ($ids) { $cids = array(); foreach ($ids as $id) { unset($this->entities[$id]); $cids[] = $this->buildCacheId($id); } if ($this->entityType->isPersistentlyCacheable()) { $this->cacheBackend->deleteMultiple($cids); } } else { $this->entities = array(); if ($this->entityType->isPersistentlyCacheable()) { $this->cacheBackend->deleteTags(array($this->entityTypeId . '_values' => TRUE)); } } }
/** * Resets metadata describing supported tokens. */ public function resetInfo() { $this->tokenInfo = NULL; $this->cache->deleteTags(array(static::TOKEN_INFO_CACHE_TAG => TRUE)); }
/** * {@inheritdoc} */ public function deleteTags(array $tags) { $this->markAsOutdated(); $this->consistentBackend->deleteTags($tags); }
/** * {@inheritdoc} */ public function deleteTags(array $tags) { return $this->cacheBackend->deleteTags($tags); }