We should not use a hard path in cache bust

This commit is contained in:
Isaac Connor committed 2018-07-11 15:48:01 -04:00
1 parent 115e554d94
commit 05615c5cf4
1 file changed
+1 -1
+1 -1
View File
@@ -2064,7 +2064,7 @@ function cache_bust( $file ) {
$dirname = preg_replace( '/\//', '_', $parts['dirname'] );
$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) ) {
return '/zm/cache/'.$cacheFile;
return 'cache/'.$cacheFile;
} else {
Warning("Failed linking $file to $cacheFile");
}