From 8f81762d68ede590e53b929c77602f0e2db0ddc2 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 6 Sep 2010 09:56:45 -0400 Subject: common_memcache() => Cache::instance() --- classes/Profile.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'classes/Profile.php') diff --git a/classes/Profile.php b/classes/Profile.php index 8f8679550..19564408c 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -429,7 +429,7 @@ class Profile extends Memcached_DataObject function subscriptionCount() { - $c = common_memcache(); + $c = Cache::instance(); if (!empty($c)) { $cnt = $c->get(common_cache_key('profile:subscription_count:'.$this->id)); @@ -454,7 +454,7 @@ class Profile extends Memcached_DataObject function subscriberCount() { - $c = common_memcache(); + $c = Cache::instance(); if (!empty($c)) { $cnt = $c->get(common_cache_key('profile:subscriber_count:'.$this->id)); if (is_integer($cnt)) { @@ -476,7 +476,7 @@ class Profile extends Memcached_DataObject function faveCount() { - $c = common_memcache(); + $c = Cache::instance(); if (!empty($c)) { $cnt = $c->get(common_cache_key('profile:fave_count:'.$this->id)); if (is_integer($cnt)) { @@ -497,7 +497,7 @@ class Profile extends Memcached_DataObject function noticeCount() { - $c = common_memcache(); + $c = Cache::instance(); if (!empty($c)) { $cnt = $c->get(common_cache_key('profile:notice_count:'.$this->id)); @@ -519,7 +519,7 @@ class Profile extends Memcached_DataObject function blowSubscriberCount() { - $c = common_memcache(); + $c = Cache::instance(); if (!empty($c)) { $c->delete(common_cache_key('profile:subscriber_count:'.$this->id)); } @@ -527,7 +527,7 @@ class Profile extends Memcached_DataObject function blowSubscriptionCount() { - $c = common_memcache(); + $c = Cache::instance(); if (!empty($c)) { $c->delete(common_cache_key('profile:subscription_count:'.$this->id)); } @@ -535,7 +535,7 @@ class Profile extends Memcached_DataObject function blowFaveCount() { - $c = common_memcache(); + $c = Cache::instance(); if (!empty($c)) { $c->delete(common_cache_key('profile:fave_count:'.$this->id)); } @@ -543,7 +543,7 @@ class Profile extends Memcached_DataObject function blowNoticeCount() { - $c = common_memcache(); + $c = Cache::instance(); if (!empty($c)) { $c->delete(common_cache_key('profile:notice_count:'.$this->id)); } -- cgit v1.2.3-54-g00ecf