summaryrefslogtreecommitdiff
path: root/actions/getfile.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/getfile.php')
-rw-r--r--actions/getfile.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/getfile.php b/actions/getfile.php
index 9cbe8e1d9..a45506ce2 100644
--- a/actions/getfile.php
+++ b/actions/getfile.php
@@ -129,9 +129,9 @@ class GetfileAction extends Action
return null;
}
- $cache = common_memcache();
+ $cache = Cache::instance();
if($cache) {
- $key = common_cache_key('attachments:etag:' . $this->path);
+ $key = Cache::key('attachments:etag:' . $this->path);
$etag = $cache->get($key);
if($etag === false) {
$etag = crc32(file_get_contents($this->path));