/** * Reset defaults for this store */ public static function reset() { // Remove all files in this store if (self::$basedir) { $path = self::base_path(); if (file_exists($path)) { \Filesystem::removeFolder($path); } } self::$seekable_override = null; self::$basedir = null; }
/** * 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; }