Skip to content

Commit 664f684

Browse files
committed
Disable cache if app.debug is true
1 parent dfd4ad0 commit 664f684

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/Flynsarmy/DbBladeCompiler/Compilers/DbBladeCompiler.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function compile($path)
2323
// Compile to PHP
2424
$contents = $this->compileString($string);
2525

26-
if ( ! is_null($this->cachePath) || !Config::get('app.debug'))
26+
if ( ! is_null($this->cachePath))
2727
{
2828
$this->files->put($this->getCompiledPath($path), $contents);
2929
}
@@ -66,6 +66,8 @@ public function getCompiledPath($model)
6666
*/
6767
public function isExpired($path)
6868
{
69+
if(Config::get('app.debug')) return true;
70+
6971
$compiled = $this->getCompiledPath($path);
7072

7173
// If the compiled file doesn't exist we will indicate that the view is expired

0 commit comments

Comments
 (0)