Ejemplo n.º 1
0
 /**
  * Called on Core install, update, plugin enable/disable
  * Will clear all cache that could be affected by the change in configuration being made
  */
 public static function deleteAllCacheOnUpdate()
 {
     Piwik_AssetManager::removeMergedAssets();
     Piwik_View::clearCompiledTemplates();
     Piwik_Common::deleteTrackerCache();
 }
Ejemplo n.º 2
0
 private function doExecuteUpdates($updater, $componentsWithUpdateFile)
 {
     $this->loadAndExecuteUpdateFiles($updater, $componentsWithUpdateFile);
     $view = new Piwik_View('CoreUpdater/templates/update_database_done.tpl');
     $view->coreError = $this->coreError;
     $view->warningMessages = $this->warningMessages;
     $view->errorMessages = $this->errorMessages;
     $view->deactivatedPlugins = $this->deactivatedPlugins;
     $view->clearCompiledTemplates();
     echo $view->render();
 }