mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
프로필 이미지 URL에 filemtime을 추가하여 변경시 캐시 갱신 유도
This commit is contained in:
parent
78be4d5626
commit
6f4fa03dc0
1 changed files with 3 additions and 3 deletions
|
|
@ -885,7 +885,7 @@ class memberModel extends member
|
|||
$info = new stdClass();
|
||||
$info->width = $width;
|
||||
$info->height = $height;
|
||||
$info->src = Context::getRequestUri().$image_name_file;
|
||||
$info->src = Context::getRequestUri().$image_name_file . '?' . date('YmdHis', filemtime($image_name_file));
|
||||
$info->file = './'.$image_name_file;
|
||||
$GLOBALS['__member_info__']['profile_image'][$member_srl] = $info;
|
||||
break;
|
||||
|
|
@ -910,7 +910,7 @@ class memberModel extends member
|
|||
$info = new stdClass;
|
||||
$info->width = $width;
|
||||
$info->height = $height;
|
||||
$info->src = Context::getRequestUri().$image_name_file;
|
||||
$info->src = Context::getRequestUri().$image_name_file. '?' . date('YmdHis', filemtime($image_name_file));
|
||||
$info->file = './'.$image_name_file;
|
||||
$GLOBALS['__member_info__']['image_name'][$member_srl] = $info;
|
||||
}
|
||||
|
|
@ -932,7 +932,7 @@ class memberModel extends member
|
|||
list($width, $height, $type, $attrs) = getimagesize($image_mark_file);
|
||||
$info->width = $width;
|
||||
$info->height = $height;
|
||||
$info->src = Context::getRequestUri().$image_mark_file;
|
||||
$info->src = Context::getRequestUri().$image_mark_file . '?' . date('YmdHis', filemtime($image_mark_file));
|
||||
$info->file = './'.$image_mark_file;
|
||||
$GLOBALS['__member_info__']['image_mark'][$member_srl] = $info;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue