stagger thumbnail cache
This commit is contained in:
parent
5ea26a80cc
commit
69cb67fe24
2 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ class RSSImages extends Extension
|
|||
</item>
|
||||
";
|
||||
|
||||
$cache->set("rss-item-image:{$image->id}", $data, 86400);
|
||||
$cache->set("rss-item-image:{$image->id}", $data, rand(43200, 86400));
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ class Themelet extends BaseThemelet
|
|||
"</div>\n";
|
||||
|
||||
// cache for ages; will be cleared in ext/index:onImageInfoSet
|
||||
$cache->set("thumb-block:{$image->id}", $html, 86400);
|
||||
$cache->set("thumb-block:{$image->id}", $html, rand(43200, 86400));
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
|
Reference in a new issue