X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fshowcache.php;h=8ef08467d6be139dd2a50ee11670962cbeb30cf7;hb=586aaa596e2277a2c4bea9cae476014a2837a41d;hp=3a73ef10f736c61da996ad82fe3151d808f4f6bd;hpb=c8b8f07af14ad2ce9d0c0267962dd3bbf6473a4b;p=quix0rs-gnu-social.git diff --git a/scripts/showcache.php b/scripts/showcache.php old mode 100644 new mode 100755 index 3a73ef10f7..8ef08467d6 --- a/scripts/showcache.php +++ b/scripts/showcache.php @@ -1,7 +1,7 @@ #!/usr/bin/env php shows the cached object based on the args -t table Table to look up - -c column Column to look up, default "id" + -l column Column to look up, default "id" -v value Value to look up -k key Key to look up; other args are ignored @@ -38,13 +38,13 @@ require_once INSTALLDIR.'/scripts/commandline.inc'; $karg = get_option_value('k'); if (!empty($karg)) { - $k = common_cache_key($karg); + $k = Cache::key($karg); } else { $table = get_option_value('t'); if (empty($table)) { die("No table or key specified\n"); } - $column = get_option_value('c'); + $column = get_option_value('l'); if (empty($column)) { $column = 'id'; } @@ -55,7 +55,7 @@ if (!empty($karg)) { print "Checking key '$k'...\n"; -$c = common_memcache(); +$c = Cache::instance(); if (empty($c)) { die("Can't initialize cache object!\n");