diff --git a/lib/Compiler.class.php b/lib/Compiler.class.php index 785bc35..2c722e1 100644 --- a/lib/Compiler.class.php +++ b/lib/Compiler.class.php @@ -71,6 +71,8 @@ public function cacheStylesheet(WPLessStylesheet $stylesheet, $force = false) { $cache_name = 'wp_less_compiled_'.md5($stylesheet->getSourcePath()); $compiled_cache = get_transient($cache_name); + + if( !$force && !file_exists( $stylesheet->getTargetPath() ) ) $force = true; $compiled_cache = $this->cachedCompile($compiled_cache ? $compiled_cache : $stylesheet->getSourcePath(), $force);