/** * {@inheritdoc} */ public function generateKey($name, $className) { $hash = hash('sha256', $className); return $this->directory . '/' . $this->website->getCacheKey() . '/' . $hash; }
/** * Create a cache tags * * @param string $name * * @return string */ protected function getCacheTags($name) { $key = $this->website->getCacheKey(); return [$key, "{$key}.{$name}"]; }
/** * Create a cache tags from model * * @param object $model * @return string */ protected function getCacheTags($model) { $key = $this->website->getCacheKey(); return [$key, $key . '.' . $model->getTable()]; }