本文整理汇总了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);
}
}
}