Always us /zm in cache_bust
This commit is contained in:
parent
10531df543
commit
cf4a1c73fd
|
@ -2063,8 +2063,8 @@ function cache_bust( $file ) {
|
||||||
global $css;
|
global $css;
|
||||||
$dirname = preg_replace( '/\//', '_', $parts['dirname'] );
|
$dirname = preg_replace( '/\//', '_', $parts['dirname'] );
|
||||||
$cacheFile = $dirname.'_'.$parts['filename'].'-'.$css.'-'.filemtime($file).'.'.$parts['extension'];
|
$cacheFile = $dirname.'_'.$parts['filename'].'-'.$css.'-'.filemtime($file).'.'.$parts['extension'];
|
||||||
if ( file_exists( ZM_DIR_CACHE.'/'.$cacheFile ) or symlink( ZM_PATH_WEB.'/'.$file, ZM_DIR_CACHE.'/'.$cacheFile ) ) {
|
if ( file_exists(ZM_DIR_CACHE.'/'.$cacheFile) or symlink(ZM_PATH_WEB.'/'.$file, ZM_DIR_CACHE.'/'.$cacheFile) ) {
|
||||||
return 'cache/'.$cacheFile;
|
return '/zm/cache/'.$cacheFile;
|
||||||
} else {
|
} else {
|
||||||
Warning("Failed linking $file to $cacheFile");
|
Warning("Failed linking $file to $cacheFile");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue