X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fshowcache.php;h=93b57a484b20be47c3c2f5fe1326cf8676604604;hb=69b2f19b6fef793aa607c6d8f4590b93e2565626;hp=6b00a8f7bf797be9a79339084a4520df23d5afca;hpb=ec6a38a62786c85e8ee30c5726ea81f82465b39d;p=quix0rs-gnu-social.git diff --git a/scripts/showcache.php b/scripts/showcache.php index 6b00a8f7bf..93b57a484b 100644 --- a/scripts/showcache.php +++ b/scripts/showcache.php @@ -20,14 +20,14 @@ define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); -$shortoptions = "t:c:v:k:"; +$shortoptions = "t:l:v:k:"; $helptext = << 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 @@ -44,7 +44,7 @@ if (!empty($karg)) { 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'; } @@ -58,7 +58,7 @@ print "Checking key '$k'...\n"; $c = common_memcache(); if (empty($c)) { - die("Cannot initialize cache object!\n"); + die("Can't initialize cache object!\n"); } $obj = $c->get($k);