Commit 582f3d8
authored
fix: add file_exists check to ensureCompiled in-memory cache guard (#97)
The in-memory cache in ensureCompiled() assumed that once a view was
compiled, the compiled file would always exist on disk. When compiled
views are cleared (e.g. via artisan view:clear) while the process is
still running, the stale cache entry causes require_once to fail with
a file-not-found error.
Adding a file_exists($compiledPath) check alongside the isset() guard
ensures the compiled file is re-created when it has been removed.
Fixes #961 parent 43a410c commit 582f3d8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
0 commit comments