public static function restoreMaintenanceBootstrapSelf($output = true) { if (!file_exists('bootstrap.php.backup')) { throw new Kwf_Exception("maintenance bootstrap not written"); } unlink('bootstrap.php'); rename('bootstrap.php.backup', 'bootstrap.php'); if ($output) { echo "\nrestored bootstrap.php\n"; } Kwf_Util_ClearCache::clearOptcode(getcwd() . '/bootstrap.php'); }
protected function _clearCache($options) { Kwf_Util_ClearCache::clearOptcode(); }
protected function _refreshCache($options) { $file = 'cache/setup' . Kwf_Setup::CACHE_SETUP_VERSION . '.php'; file_put_contents($file, Kwf_Util_Setup::generateCode(Kwf_Setup::$configClass)); Kwf_Util_ClearCache::clearOptcode(getcwd() . '/' . $file); }