mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
Add delete method on databox repositories to invalidate cache on delete
This commit is contained in:
@@ -935,6 +935,8 @@ class databox extends base implements ThumbnailedElement
|
||||
|
||||
$this->get_appbox()->delete_data_from_cache(appbox::CACHE_LIST_BASES);
|
||||
|
||||
$this->databoxRepository->delete($this);
|
||||
|
||||
$this->app['dispatcher']->dispatch(
|
||||
DataboxEvents::DELETED,
|
||||
new DeletedEvent(
|
||||
|
Reference in New Issue
Block a user