summaryrefslogtreecommitdiff
path: root/plugins/Minify
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-12-04 23:17:19 -0500
committerCraig Andrews <candrews@integralblue.com>2009-12-04 23:17:19 -0500
commitf4fc8481e24ce4bd7714022109d75b2a22198fdf (patch)
treecabac0500da224b308c0017952263ea455dc890f /plugins/Minify
parentfa6675550885e005f6a69dfd317320dff6c4a3cd (diff)
Separate out some common code
Diffstat (limited to 'plugins/Minify')
-rw-r--r--plugins/Minify/minify.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/Minify/minify.php b/plugins/Minify/minify.php
index 2de2d6d26..f8c17767c 100644
--- a/plugins/Minify/minify.php
+++ b/plugins/Minify/minify.php
@@ -33,6 +33,7 @@ class MinifyAction extends Action
const cacheKey = 'minify';
var $file;
+ var $v;
function isReadOnly($args)
{
@@ -80,13 +81,14 @@ class MinifyAction extends Action
$c = common_memcache();
if (!empty($c)) {
- $out = $c->get(common_cache_key(self::cacheKey . ':' . $this->file));
+ $cacheKey = common_cache_key(self::cacheKey . ':' . $this->file . '?v=' . empty($this->v)?'':$this->v);
+ $out = $c->get($cacheKey);
}
if(empty($out)) {
$out = $this->minify($this->file);
}
if (!empty($c)) {
- $c->set(common_cache_key(self::cacheKey . ':' . $this->file), $out);
+ $c->set($cacheKey, $out);
}
$sec = session_cache_expire() * 60;