diff options
author | Evan Prodromou <evan@status.net> | 2010-09-06 10:07:43 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-09-06 10:07:43 -0400 |
commit | a319b40c97c2fd6527eeb81d7d2f2d703756ef80 (patch) | |
tree | 19f849d8abddc24b609d33a5710efb97b37a972f /plugins/Minify | |
parent | e42d2124a319e72f949fa354cc75252f32a5a6c5 (diff) |
common_cache_key() -> Cache::key()
Diffstat (limited to 'plugins/Minify')
-rw-r--r-- | plugins/Minify/MinifyPlugin.php | 4 | ||||
-rw-r--r-- | plugins/Minify/minify.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Minify/MinifyPlugin.php b/plugins/Minify/MinifyPlugin.php index 5071fd5a1..afe6edf5f 100644 --- a/plugins/Minify/MinifyPlugin.php +++ b/plugins/Minify/MinifyPlugin.php @@ -121,7 +121,7 @@ class MinifyPlugin extends Plugin if($this->minifyInlineJs && $type=='text/javascript'){ $c = Cache::instance(); if (!empty($c)) { - $cacheKey = common_cache_key(self::cacheKey . ':' . crc32($code)); + $cacheKey = Cache::key(self::cacheKey . ':' . crc32($code)); $out = $c->get($cacheKey); } if(empty($out)) { @@ -141,7 +141,7 @@ class MinifyPlugin extends Plugin if($this->minifyInlineCss && $type=='text/css'){ $c = Cache::instance(); if (!empty($c)) { - $cacheKey = common_cache_key(self::cacheKey . ':' . crc32($code)); + $cacheKey = Cache::key(self::cacheKey . ':' . crc32($code)); $out = $c->get($cacheKey); } if(empty($out)) { diff --git a/plugins/Minify/minify.php b/plugins/Minify/minify.php index 3e8f86f83..bac1df8e2 100644 --- a/plugins/Minify/minify.php +++ b/plugins/Minify/minify.php @@ -76,7 +76,7 @@ class MinifyAction extends Action $c = Cache::instance(); if (!empty($c)) { - $cacheKey = common_cache_key(MinifyPlugin::cacheKey . ':' . $this->file . '?v=' . empty($this->v)?'':$this->v); + $cacheKey = Cache::key(MinifyPlugin::cacheKey . ':' . $this->file . '?v=' . empty($this->v)?'':$this->v); $out = $c->get($cacheKey); } if(empty($out)) { |