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