summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/clearcache.php2
-rwxr-xr-xscripts/fixup_inboxes.php2
-rw-r--r--scripts/showcache.php2
-rw-r--r--scripts/uncache_users.php4
4 files changed, 5 insertions, 5 deletions
diff --git a/scripts/clearcache.php b/scripts/clearcache.php
index 8f54bc9ac..c67d6275d 100644
--- a/scripts/clearcache.php
+++ b/scripts/clearcache.php
@@ -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)) {
diff --git a/scripts/fixup_inboxes.php b/scripts/fixup_inboxes.php
index 7397d75d8..c6e4fd071 100755
--- a/scripts/fixup_inboxes.php
+++ b/scripts/fixup_inboxes.php
@@ -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));
}
}
diff --git a/scripts/showcache.php b/scripts/showcache.php
index 953ad1a77..8ef08467d 100644
--- a/scripts/showcache.php
+++ b/scripts/showcache.php
@@ -38,7 +38,7 @@ 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)) {
diff --git a/scripts/uncache_users.php b/scripts/uncache_users.php
index d8c0a025b..eb7e39802 100644
--- a/scripts/uncache_users.php
+++ b/scripts/uncache_users.php
@@ -47,6 +47,6 @@ foreach ($ids as $id) {
$user->decache();
- $memc->delete(common_cache_key('user:notices_with_friends:'. $user->id));
- $memc->delete(common_cache_key('user:notices_with_friends:'. $user->id . ';last'));
+ $memc->delete(Cache::key('user:notices_with_friends:'. $user->id));
+ $memc->delete(Cache::key('user:notices_with_friends:'. $user->id . ';last'));
}