|
@@ -344,7 +344,7 @@ func (rh *RenderHandler) HandleLoadCache(w http.ResponseWriter, r *http.Request,
|
|
//Check if the cache for a file exists
|
|
//Check if the cache for a file exists
|
|
func CacheExists(fsh *filesystem.FileSystemHandler, file string) bool {
|
|
func CacheExists(fsh *filesystem.FileSystemHandler, file string) bool {
|
|
cacheFolder := filepath.ToSlash(filepath.Join(filepath.Clean(filepath.Dir(file)), "/.metadata/.cache/") + "/")
|
|
cacheFolder := filepath.ToSlash(filepath.Join(filepath.Clean(filepath.Dir(file)), "/.metadata/.cache/") + "/")
|
|
- return fsh.FileSystemAbstraction.FileExists(cacheFolder+filepath.Base(file)+".jpg") || fileExists(cacheFolder+filepath.Base(file)+".png")
|
|
|
|
|
|
+ return fsh.FileSystemAbstraction.FileExists(cacheFolder+filepath.Base(file)+".jpg") || fsh.FileSystemAbstraction.FileExists(cacheFolder+filepath.Base(file)+".png")
|
|
}
|
|
}
|
|
|
|
|
|
//Get cache path for this file, given realpath
|
|
//Get cache path for this file, given realpath
|