From 4ef28bb30dcdd36d468553b6fc036ae07fa89160 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 3 Nov 2017 09:22:43 -0400 Subject: [PATCH] don't put the leading / in the cache link --- 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 6a94bb8ef..2f201c6e3 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -2064,7 +2064,7 @@ function cache_bust( $file ) { # Use the last modified timestamp to create a link that gets a different filename # To defeat caching. Should probably use md5 hash $parts = pathinfo($file); - $cacheFile = '/cache/'.$parts['filename'].'-'.filemtime($file).'.'.$parts['extension']; + $cacheFile = 'cache/'.$parts['filename'].'-'.filemtime($file).'.'.$parts['extension']; if ( file_exists( ZM_PATH_WEB.$cacheFile ) or symlink( ZM_PATH_WEB.'/'.$file, ZM_PATH_WEB.$cacheFile ) ) { return $cacheFile; } else {