diff options
author | emkael <emkael@tlen.pl> | 2019-02-02 00:08:20 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-02-02 00:08:20 +0100 |
commit | 69c7dbf359029b098892abd28e6c84ccd4004328 (patch) | |
tree | 3cd9d3dc9eba9e0263ac572dc399fe3c77db5e1e | |
parent | 28a1c14bf82d9d0a8311f8f18746d0b4cd821314 (diff) |
Bugfix for FB cache refresh
-rwxr-xr-x | bin/refresh-fb-cache.php | 5 |
1 files changed, 3 insertions, 2 deletions
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); } } } |