From 05615c5cf41b6f10e1fea09cd4e5ad023fc25659 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 11 Jul 2018 15:48:01 -0400 Subject: [PATCH] We should not use a hard path in cache bust --- web/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/includes/functions.php b/web/includes/functions.php index 0600d4f60..319ff1774 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -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"); }