mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +09:00
r7485 보완
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7486 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
19497e2837
commit
d0c7dfcfaf
2 changed files with 3 additions and 5 deletions
2
classes/cache/CacheApc.class.php
vendored
2
classes/cache/CacheApc.class.php
vendored
|
|
@ -66,7 +66,7 @@
|
|||
}
|
||||
|
||||
function truncate() {
|
||||
apc_clear_cache('user');
|
||||
return apc_clear_cache('user');
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ function useContentEncoding(){
|
|||
|
||||
function getCacheKey($list){
|
||||
$key = 'optimized:' . join('',$list);
|
||||
return $key;
|
||||
return md5($key);
|
||||
}
|
||||
|
||||
function printFileList($list){
|
||||
|
|
@ -231,7 +231,6 @@ function convertEncodingStr($str) {
|
|||
|
||||
return $str;
|
||||
}
|
||||
|
||||
if($type == '.js'){
|
||||
printFileList($list);
|
||||
}else if($type == '.css'){
|
||||
|
|
@ -244,13 +243,12 @@ if($type == '.js'){
|
|||
}
|
||||
|
||||
$cache_key = getCacheKey($css);
|
||||
|
||||
$buff = $oCacheHandler->get($cache_key, $mtime);
|
||||
if(!$buff){
|
||||
$buff = '';
|
||||
$css = array();
|
||||
foreach($list as $file){
|
||||
$buff .= makeCacheFileCSS($file, '', true);
|
||||
$css[] = getRealPath($cache_file);
|
||||
}
|
||||
|
||||
$oCacheHandler->put($cache_key, $buff);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue