summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfox <[email protected]>2022-01-17 20:14:29 +0300
committerfox <[email protected]>2022-01-17 20:14:29 +0300
commit49d93989af37a63235d43a46491f06fff987e00c (patch)
treedffdbf10cc1d3deaac325f03c0936f3068ba8bb3
parent3cdbd4422c9cdfc5fdd8fb6571f8515fa0aa6cf8 (diff)
parenta769ccc51c5defece9a691f25955e8d72a467fb1 (diff)
Merge pull request 'Fix starred images not being deleted' (#64) from klempin/tt-rss:master into master
Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/64
-rwxr-xr-xplugins/cache_starred_images/init.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/cache_starred_images/init.php b/plugins/cache_starred_images/init.php
index a020d7d01..feec81d62 100755
--- a/plugins/cache_starred_images/init.php
+++ b/plugins/cache_starred_images/init.php
@@ -85,10 +85,9 @@ class Cache_Starred_Images extends Plugin {
Debug::log("expiring {$this->cache->get_dir()} and {$this->cache_status->get_dir()}...");
$files = array_merge(
- glob($this->cache->get_dir() . "/*.png"),
- glob($this->cache->get_dir() . "/*.mp4"),
- glob($this->cache_status->get_dir() . "/*.status"),
- glob($this->cache->get_dir() . "/*.status"));
+ glob($this->cache->get_dir() . "/*-*"),
+ glob($this->cache_status->get_dir() . "/*.status")
+ );
asort($files);