/** * Clears the temporary widget cache */ public function clearDashboardCache() { $cacheDir = $this->factory->getParameter('cached_data_dir', $this->factory->getSystemPath('cache', true)); $cacheStorage = new CacheStorageHelper($cacheDir, $this->factory->getUser()->getId()); $cacheStorage->clear(); }