diff --git a/module/VuFindTheme/src/VuFindTheme/LessCompiler.php b/module/VuFindTheme/src/VuFindTheme/LessCompiler.php
index dff6388269fcd46686c694b7e0dfe06e1ed87c82..872b86bbc0112749fd358ceecd8824470cc3c025 100644
--- a/module/VuFindTheme/src/VuFindTheme/LessCompiler.php
+++ b/module/VuFindTheme/src/VuFindTheme/LessCompiler.php
@@ -141,11 +141,6 @@ class LessCompiler
                 $this->compileFile($theme, $less);
             }
         }
-
-        \Less_Cache::SetCacheDir(
-            APPLICATION_PATH . '/themes/' . $theme . '/css/less/'
-        );
-        \Less_Cache::CleanCache(); // deletes week old files
     }
 
     /**
@@ -206,7 +201,7 @@ class LessCompiler
             [$lessDir . $less => $this->fakePath . "themes/$theme/css/less"],
             [
                 'cache_dir' => $this->tempPath,
-                'cache_method' => "php",
+                'cache_method' => 'php',
                 'compress' => true,
                 'import_dirs' => $directories
             ]