]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use the same cache string in all places for file:notice-ids
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 4 Jun 2015 15:02:45 +0000 (17:02 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 4 Jun 2015 15:02:45 +0000 (17:02 +0200)
classes/File.php

index 1cb7eab6b856c203e6023d79e72cb98415fe538f..76c00dc1f887d364095e3e987009091435b3f940 100644 (file)
@@ -510,9 +510,9 @@ class File extends Managed_DataObject
 
     function blowCache($last=false)
     {
-        self::blow('file:notice-ids:%s', $this->urlhash);
+        self::blow('file:notice-ids:%s', $this->id);
         if ($last) {
-            self::blow('file:notice-ids:%s;last', $this->urlhash);
+            self::blow('file:notice-ids:%s;last', $this->id);
         }
         self::blow('file:notice-count:%d', $this->id);
     }