We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfd4ad0 commit 664f684Copy full SHA for 664f684
src/Flynsarmy/DbBladeCompiler/Compilers/DbBladeCompiler.php
@@ -23,7 +23,7 @@ public function compile($path)
23
// Compile to PHP
24
$contents = $this->compileString($string);
25
26
- if ( ! is_null($this->cachePath) || !Config::get('app.debug'))
+ if ( ! is_null($this->cachePath))
27
{
28
$this->files->put($this->getCompiledPath($path), $contents);
29
}
@@ -66,6 +66,8 @@ public function getCompiledPath($model)
66
*/
67
public function isExpired($path)
68
69
+ if(Config::get('app.debug')) return true;
70
+
71
$compiled = $this->getCompiledPath($path);
72
73
// If the compiled file doesn't exist we will indicate that the view is expired
0 commit comments