From cf4a1c73fd09690d931aa31d2039d00bd1be9d08 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 4 Jul 2018 14:46:22 -0400 Subject: [PATCH] Always us /zm in cache_bust --- web/includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/includes/functions.php b/web/includes/functions.php index 00d77fbbb..0600d4f60 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -2063,8 +2063,8 @@ function cache_bust( $file ) { global $css; $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 'cache/'.$cacheFile; + if ( file_exists(ZM_DIR_CACHE.'/'.$cacheFile) or symlink(ZM_PATH_WEB.'/'.$file, ZM_DIR_CACHE.'/'.$cacheFile) ) { + return '/zm/cache/'.$cacheFile; } else { Warning("Failed linking $file to $cacheFile"); }