Add cache busting via save method of collection repository

This commit is contained in:
Thibaud Fabre
2015-07-09 19:00:34 +02:00
parent 977e778b61
commit c5cab178a9
5 changed files with 63 additions and 14 deletions

View File

@@ -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;
}
}
}