mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Improve collection reference caching and remove legacy maps
This commit is contained in:
@@ -96,6 +96,15 @@ final class CachedCollectionRepository implements CollectionRepository
|
||||
$this->cache->delete($cacheKey);
|
||||
}
|
||||
|
||||
public function delete(Collection $collection)
|
||||
{
|
||||
$this->repository->delete($collection);
|
||||
|
||||
$cacheKey = hash('sha256', $this->cacheKey);
|
||||
|
||||
$this->cache->delete($cacheKey);
|
||||
}
|
||||
|
||||
private function putInCache($key, $value)
|
||||
{
|
||||
$this->cache->save($key, $value);
|
||||
|
Reference in New Issue
Block a user