From 69c7dbf359029b098892abd28e6c84ccd4004328 Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 2 Feb 2019 00:08:20 +0100 Subject: Bugfix for FB cache refresh --- bin/refresh-fb-cache.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/refresh-fb-cache.php b/bin/refresh-fb-cache.php index 35c7822..b8711a0 100755 --- a/bin/refresh-fb-cache.php +++ b/bin/refresh-fb-cache.php @@ -16,8 +16,9 @@ foreach ($cacheFiles as $file) { $cacheTime = filemtime($file); if ($cacheTime < $oldestCache) { $oldestCache = $cacheTime; - $fileToFetch = explode('.', $file); - $fileToFetch = $fileToFetch[count($fileToFetch)-1]; + $fileToFetch = explode('.', basename($file)); + array_shift($fileToFetch); + $fileToFetch = implode('.', $fileToFetch); } } } -- cgit v1.2.3