mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Add delete method on databox repositories to invalidate cache on delete
This commit is contained in:
@@ -62,6 +62,16 @@ class ArrayCacheDataboxRepository implements DataboxRepository
|
||||
return $this->repository->save($databox);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \databox $databox
|
||||
*/
|
||||
public function delete(\databox $databox)
|
||||
{
|
||||
$this->clear();
|
||||
|
||||
return $this->repository->delete($databox);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $host
|
||||
* @param $port
|
||||
|
Reference in New Issue
Block a user