Add unmount method on databox repositories to invalidate cache on unmount

This commit is contained in:
Thibaud Fabre
2016-01-28 16:16:53 +01:00
parent 841182eca4
commit 3d298a6012
5 changed files with 28 additions and 0 deletions

View File

@@ -870,6 +870,7 @@ class databox extends base implements ThumbnailedElement
$stmt->execute([':sbas_id' => $this->id]);
$stmt->closeCursor();
$this->databoxRepository->unmount($this);
$this->get_appbox()->delete_data_from_cache(appbox::CACHE_LIST_BASES);
$this->app['dispatcher']->dispatch(