aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Cache_query.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Daemon/Cache_query.php')
-rw-r--r--Zotlabs/Daemon/Cache_query.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/Zotlabs/Daemon/Cache_query.php b/Zotlabs/Daemon/Cache_query.php
index cd9597e9a..8e5c6b2ea 100644
--- a/Zotlabs/Daemon/Cache_query.php
+++ b/Zotlabs/Daemon/Cache_query.php
@@ -3,6 +3,7 @@
namespace Zotlabs\Daemon;
use Zotlabs\Lib\Cache;
+use Zotlabs\Lib\Config;
class Cache_query {
@@ -13,14 +14,14 @@ class Cache_query {
$key = $argv[1];
- $pid = get_config('procid', $key, false);
+ $pid = Config::Get('procid', $key, false);
if ($pid && (function_exists('posix_kill') ? posix_kill($pid, 0) : true)) {
logger($key . ': procedure already run with pid ' . $pid, LOGGER_DEBUG);
return;
}
$pid = getmypid();
- set_config('procid', $key, $pid);
+ Config::Set('procid', $key, $pid);
array_shift($argv);
array_shift($argv);
@@ -31,7 +32,7 @@ class Cache_query {
if($r)
Cache::set($key, serialize($r));
- del_config('procid', $key);
+ Config::Delete('procid', $key);
return;
}