Skip to content

Commit 3d9d9c1

Browse files
author
Root User
committed
Resource Reset by Cache
1 parent 680d274 commit 3d9d9c1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

services/cmds/resources.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,15 @@
3333
$_REQUEST['src']=base64_decode($_REQUEST['src']);
3434
}
3535
if(strlen($_REQUEST['src'])>0) {
36+
37+
$resHashID = _cache("RESOURCEHASHID");
38+
if(!$resHashID) {
39+
$resHashID = uniqid();
40+
_cache("RESOURCEHASHID", $resHashID);
41+
}
42+
3643
$originalResourceURI = $_REQUEST['src'];
37-
$resourceURIHash = md5(SITENAME.$originalResourceURI.$_REQUEST['type'].$_REQUEST['theme']);
44+
$resourceURIHash = md5(SITENAME.$originalResourceURI.$_REQUEST['type'].$_REQUEST['theme'].$resHashID);
3845

3946
if(!isset($_REQUEST['recache']) || $_REQUEST['recache']!="true") {
4047
$cacheData = _cache("RESOURCE{$resourceURIHash}");

0 commit comments

Comments
 (0)