1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-26 06:31:28 +00:00

* HOOK_ENCLOSURE_ENTRY: pass article_id to handler

* DiskCache: multiple fixes; support isWritable() for cache entries, set content-disposition for send()
* public/cached_url: allow selecting files from sub-caches other than images
* plugins/Cache_Starred_Images: rework to use DiskCache, can be enabled per-user, properly handles article enclosures, etc
This commit is contained in:
Andrew Dolgov
2019-08-13 16:40:21 +03:00
parent bed695b127
commit fdb6066bf6
7 changed files with 158 additions and 142 deletions

View File

@@ -56,8 +56,6 @@ class Af_Zz_ImgProxy extends Plugin {
$local_filename = sha1($url);
header("Content-Disposition: inline; filename=\"".basename($local_filename)."\"");
if ($this->cache->exists($local_filename)) {
$this->cache->send($local_filename);
} else {