mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-12-22 09:40:23 -05:00
Version the blog entry images to bust the cache
This commit is contained in:
parent
75f0b2705a
commit
c48db55fb5
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ class Blog extends DashboardModel
|
|||
|
||||
// Add the header image if one exists
|
||||
$header_image_path = '/uploads/blog/img/' . $blog_entry->id . '-header-image.jpg';
|
||||
$blog_entry['headerimage'] = file_exists(base_path() . '/public' . $header_image_path) ? $header_image_path : '';
|
||||
$blog_entry['headerimage'] = file_exists(base_path() . '/public' . $header_image_path) ? $header_image_path . '?version=' . $blog_entry->timestamp() : '';
|
||||
|
||||
// Add the processed blog entry to the array
|
||||
array_push($blog_entries, $blog_entry);
|
||||
|
|
Loading…
Reference in a new issue