diff options
Diffstat (limited to 'classes/User.php')
-rw-r--r-- | classes/User.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/classes/User.php b/classes/User.php index 94fcff9c8..de260035a 100644 --- a/classes/User.php +++ b/classes/User.php @@ -196,10 +196,9 @@ class User extends Memcached_DataObject function noticesWithFriendsWindow() { - $cache = new Memcache(); - $res = $cache->connect(common_config('memcached', 'server'), common_config('memcached', 'port')); + $cache = common_memcache(); - if (!$res) { + if (!$cache) { return NULL; } |