문서 및 댓글 썸네일 URL에 mtime을 추가하여 캐시 갱신 유도

This commit is contained in:
Kijin Sung 2015-12-22 17:42:26 +09:00
parent c68f14086f
commit 29a534b256
2 changed files with 4 additions and 4 deletions

View file

@ -584,7 +584,7 @@ class commentItem extends Object
} }
else else
{ {
return $thumbnail_url; return $thumbnail_url . '?' . date('YmdHis', filemtime($thumbnail_file));
} }
} }
@ -693,7 +693,7 @@ class commentItem extends Object
// Return the thumbnail path if it was successfully generated // Return the thumbnail path if it was successfully generated
if($output) if($output)
{ {
return $thumbnail_url; return $thumbnail_url . '?' . date('YmdHis');
} }
// Create an empty file if thumbnail generation failed // Create an empty file if thumbnail generation failed
else else

View file

@ -844,7 +844,7 @@ class documentItem extends Object
} }
else else
{ {
return $thumbnail_url; return $thumbnail_url . '?' . date('YmdHis', filemtime($thumbnail_file));
} }
} }
@ -938,7 +938,7 @@ class documentItem extends Object
// Return the thumbnail path if it was successfully generated // Return the thumbnail path if it was successfully generated
if($output) if($output)
{ {
return $thumbnail_url; return $thumbnail_url . '?' . date('YmdHis');
} }
// Create an empty file if thumbnail generation failed // Create an empty file if thumbnail generation failed
else else