/** * Setup new backend * * @param Requirements_Backend $backend */ protected function setupRequirements($backend) { // Flush requirements $backend->clear(); $backend->clearCombinedFiles(); $backend->setCombinedFilesFolder('_combinedfiles'); $backend->setMinifyCombinedJSFiles(false); CacheGeneratedAssetHandler::flush(); }
/** * Reset defaults for this store */ public static function reset() { // Need flushing since it won't have any files left CacheGeneratedAssetHandler::flush(); // Remove all files in this store if (self::$basedir) { $path = self::base_path(); if (file_exists($path)) { SS_Filesystem::removeFolder($path); } } self::$seekable_override = null; self::$basedir = null; }