本文整理匯總了PHP中phodevi::get_phodevi_cache_object方法的典型用法代碼示例。如果您正苦於以下問題:PHP phodevi::get_phodevi_cache_object方法的具體用法?PHP phodevi::get_phodevi_cache_object怎麽用?PHP phodevi::get_phodevi_cache_object使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類phodevi
的用法示例。
在下文中一共展示了phodevi::get_phodevi_cache_object方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: process_shutdown_tasks
public static function process_shutdown_tasks()
{
// TODO: possibly do something like posix_getpid() != pts_client::$startup_pid in case shutdown function is called from a child process
// Generate Phodevi Smart Cache
if (pts_client::read_env('NO_PHODEVI_CACHE') == false && pts_client::read_env('EXTERNAL_PHODEVI_CACHE') == false) {
if (pts_config::read_bool_config('PhoronixTestSuite/Options/General/UsePhodeviCache', 'TRUE')) {
pts_storage_object::set_in_file(PTS_CORE_STORAGE, 'phodevi_smart_cache', phodevi::get_phodevi_cache_object(PTS_USER_PATH, PTS_CORE_VERSION));
} else {
pts_storage_object::set_in_file(PTS_CORE_STORAGE, 'phodevi_smart_cache', null);
}
}
if (is_array(self::$lock_pointers)) {
foreach (array_keys(self::$lock_pointers) as $lock_file) {
self::release_lock($lock_file);
}
}
foreach (self::$forked_pids as $pid) {
if (is_dir('/proc/' . $pid) && function_exists('posix_kill')) {
posix_kill($pid, SIGKILL);
}
}
}