summaryrefslogtreecommitdiff
path: root/plugins
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 /plugins
parent6fe2429c4191bd4b7de8c7a512dfbf78571ddbaf (diff)
common_memcache() => Cache::instance()
Diffstat (limited to 'plugins')
-rw-r--r--plugins/GeonamesPlugin.php4
-rw-r--r--plugins/LdapCommon/LdapCommon.php2
-rw-r--r--plugins/Minify/MinifyPlugin.php4
-rw-r--r--plugins/Minify/minify.php2
4 files changed, 6 insertions, 6 deletions
diff --git a/plugins/GeonamesPlugin.php b/plugins/GeonamesPlugin.php
index 3815a31fa..c81fb4677 100644
--- a/plugins/GeonamesPlugin.php
+++ b/plugins/GeonamesPlugin.php
@@ -384,7 +384,7 @@ class GeonamesPlugin extends Plugin
function getCache($attrs)
{
- $c = common_memcache();
+ $c = Cache::instance();
if (empty($c)) {
return null;
@@ -399,7 +399,7 @@ class GeonamesPlugin extends Plugin
function setCache($attrs, $loc)
{
- $c = common_memcache();
+ $c = Cache::instance();
if (empty($c)) {
return null;
diff --git a/plugins/LdapCommon/LdapCommon.php b/plugins/LdapCommon/LdapCommon.php
index 1f1647a75..f53660a4c 100644
--- a/plugins/LdapCommon/LdapCommon.php
+++ b/plugins/LdapCommon/LdapCommon.php
@@ -126,7 +126,7 @@ class LdapCommon
}
throw new Exception('Could not connect to LDAP server: '.$err->getMessage());
}
- $c = common_memcache();
+ $c = Cache::instance();
if (!empty($c)) {
$cacheObj = new MemcacheSchemaCache(
array('c'=>$c,
diff --git a/plugins/Minify/MinifyPlugin.php b/plugins/Minify/MinifyPlugin.php
index 13010e75a..5071fd5a1 100644
--- a/plugins/Minify/MinifyPlugin.php
+++ b/plugins/Minify/MinifyPlugin.php
@@ -119,7 +119,7 @@ class MinifyPlugin extends Plugin
function onStartInlineScriptElement($action,&$code,&$type)
{
if($this->minifyInlineJs && $type=='text/javascript'){
- $c = common_memcache();
+ $c = Cache::instance();
if (!empty($c)) {
$cacheKey = common_cache_key(self::cacheKey . ':' . crc32($code));
$out = $c->get($cacheKey);
@@ -139,7 +139,7 @@ class MinifyPlugin extends Plugin
function onStartStyleElement($action,&$code,&$type,&$media)
{
if($this->minifyInlineCss && $type=='text/css'){
- $c = common_memcache();
+ $c = Cache::instance();
if (!empty($c)) {
$cacheKey = common_cache_key(self::cacheKey . ':' . crc32($code));
$out = $c->get($cacheKey);
diff --git a/plugins/Minify/minify.php b/plugins/Minify/minify.php
index 64727f5e7..3e8f86f83 100644
--- a/plugins/Minify/minify.php
+++ b/plugins/Minify/minify.php
@@ -74,7 +74,7 @@ class MinifyAction extends Action
{
parent::handle($args);
- $c = common_memcache();
+ $c = Cache::instance();
if (!empty($c)) {
$cacheKey = common_cache_key(MinifyPlugin::cacheKey . ':' . $this->file . '?v=' . empty($this->v)?'':$this->v);
$out = $c->get($cacheKey);