Blade::render(..) with deleteCachedView: true does not delete the compiled view [hash].php. Only the [hash].blade.php view. #53125
Unanswered
rogiermulders
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Laravel Version
v11.27.2 and v10.48.22
PHP Version
8.3.6
Database Driver & Version
MySql (...)
Description
When I use the Blade::render function with the attribute deleteCachedView set to true,
It only throws away the [hash].blade.php file
NOT the [hash].php file.
This is not what I would expect.
I would expect both files were deleted.
Im using Blade::render to test if a view is valid. Do not want to fill view cache with useless test results.
Steps To Reproduce
Fresh laravel install.
In /routes/web.php
goto http://localhost:8000/
Now I would expect I have no Test B views cached but there still is.
Beta Was this translation helpful? Give feedback.
All reactions