mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 04:52:14 +09:00
문서 및 댓글 썸네일 URL에 mtime을 추가하여 캐시 갱신 유도
This commit is contained in:
parent
c68f14086f
commit
29a534b256
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue