]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/fixup_inboxes.php
Merge branch '1.0.x' into qna
[quix0rs-gnu-social.git] / scripts / fixup_inboxes.php
index d55a538853cbab49bcd7c85eb5c7d61b8ba7c91c..c6e4fd0717b26d3f50ca978c2840c2b56b951e84 100755 (executable)
@@ -46,7 +46,7 @@ if ($start_at) {
 }
 
 $cnt = $user->find();
-$cache = common_memcache();
+$cache = Cache::instance();
 
 while ($user->fetch()) {
     common_log(LOG_INFO, 'Updating inbox for user ' . $user->id);
@@ -76,6 +76,6 @@ while ($user->fetch()) {
     $inbox->free();
     unset($inbox);
     if ($cache) {
-        $cache->delete(common_cache_key('user:notices_with_friends:' . $user->id));
+        $cache->delete(Cache::key('user:notices_with_friends:' . $user->id));
     }
 }