From a769ccc51c5defece9a691f25955e8d72a467fb1 Mon Sep 17 00:00:00 2001 From: Philip Klempin Date: Sun, 16 Jan 2022 22:44:46 +0000 Subject: [PATCH] Fix starred images not being deleted --- plugins/cache_starred_images/init.php | 7 +++---- 1 file 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);