From 872780397dbaf02c84346623d6a7dee8ed9a9d07 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Tue, 22 Oct 2013 23:57:42 +0200 Subject: [PATCH] Fixed thumbnail cache Custom thumbnails were loaded only after hard ctrl+f5. Now they should be loaded with f5 alone. --- src/Controllers/PostController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controllers/PostController.php b/src/Controllers/PostController.php index 5897fc9c..2f8917c3 100644 --- a/src/Controllers/PostController.php +++ b/src/Controllers/PostController.php @@ -629,7 +629,7 @@ class PostController $this->context->transport->cacheDaysToLive = 30; $this->context->transport->mimeType = 'image/png'; - $this->context->transport->fileHash = 'thumb' . $post->file_hash; + $this->context->transport->fileHash = 'thumb' . md5($post->file_hash . filemtime($path)); $this->context->transport->filePath = $path; if (isset($tmpPath))