]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/clearcache.php
Merge branch 'master' of git.gnu.io:gnu/gnu-social
[quix0rs-gnu-social.git] / scripts / clearcache.php
old mode 100644 (file)
new mode 100755 (executable)
index 0fb75da..c67d627
@@ -38,7 +38,7 @@ require_once INSTALLDIR.'/scripts/commandline.inc';
 $karg = get_option_value('k', 'key');
 
 if (!empty($karg)) {
-    $k = common_cache_key($karg);
+    $k = Cache::key($karg);
 } else {
     $table = get_option_value('t', 'table');
     if (empty($table)) {
@@ -55,7 +55,7 @@ if (!empty($karg)) {
 
 print "Clearing key '$k'...";
 
-$c = common_memcache();
+$c = Cache::instance();
 
 if (empty($c)) {
     die("Can't initialize cache object!\n");