Ejemplo n.º 1
0
 /**
  * Flushes all caches
  *
  * @param bool $force
  * @throws NoSuchCacheGroupException
  */
 public function flush($force = FALSE)
 {
     if ($force) {
         $this->forceFlushCoreFileAndDatabaseCaches();
     }
     $this->cacheManager->flushCaches();
 }
Ejemplo n.º 2
0
 /**
  * Helper function to install an extension
  * also processes db updates and clears the cache if the extension asks for it
  *
  * @param string $extensionKey
  * @throws ExtensionManagerException
  * @return void
  */
 public function install($extensionKey)
 {
     $extension = $this->enrichExtensionWithDetails($extensionKey);
     $this->ensureConfiguredDirectoriesExist($extension);
     $this->loadExtension($extensionKey);
     if (!empty($extension['clearcacheonload']) || !empty($extension['clearCacheOnLoad'])) {
         $this->cacheManager->flushCaches();
     } else {
         $this->cacheManager->flushCachesInGroup('system');
     }
     $this->reloadCaches();
     $this->processExtensionSetup($extensionKey);
     $this->emitAfterExtensionInstallSignal($extensionKey);
 }
Ejemplo n.º 3
0
 /**
  * Helper function to install an extension
  * also processes db updates and clears the cache if the extension asks for it
  *
  * @param string $extensionKey
  * @throws ExtensionManagerException
  * @return void
  */
 public function install($extensionKey)
 {
     $extension = $this->enrichExtensionWithDetails($extensionKey);
     $this->ensureConfiguredDirectoriesExist($extension);
     $this->loadExtension($extensionKey);
     if (!empty($extension['clearcacheonload']) || !empty($extension['clearCacheOnLoad'])) {
         $this->cacheManager->flushCaches();
     } else {
         $this->cacheManager->flushCachesInGroup('system');
     }
     $this->reloadCaches();
     $this->importInitialFiles($extension['siteRelPath'], $extensionKey);
     $this->processDatabaseUpdates($extension);
     $this->processRuntimeDatabaseUpdates($extensionKey);
     $this->saveDefaultConfiguration($extension['key']);
     $this->emitAfterExtensionInstallSignal($extensionKey);
 }