summaryrefslogtreecommitdiff
path: root/classes/Profile.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-09-06 09:56:45 -0400
committerEvan Prodromou <evan@status.net>2010-09-06 09:56:45 -0400
commit8f81762d68ede590e53b929c77602f0e2db0ddc2 (patch)
treed0b95b57e16e3ad5a478bc6f6118d734badc3ddb /classes/Profile.php
parent6fe2429c4191bd4b7de8c7a512dfbf78571ddbaf (diff)
common_memcache() => Cache::instance()
Diffstat (limited to 'classes/Profile.php')
-rw-r--r--classes/Profile.php16
1 files changed, 8 insertions, 8 deletions
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));
}