mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 03:53:13 +00:00
Add cache busting via save method of collection repository
This commit is contained in:
@@ -47,4 +47,13 @@ class ArrayCacheCollectionRepository implements CollectionRepository
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function save(\collection $collection)
|
||||
{
|
||||
$this->collectionRepository->save($collection);
|
||||
|
||||
if ($this->collectionCache !== null) {
|
||||
$this->collectionCache[$collection->get_coll_id()] = $collection;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user