-
-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bakery clear-cache doesn't clear twig cache #750
Comments
Plus, for some reason, apache might write to the cache folder with higher permission than the user executing bakery. This will make the command to throw this warning:
Should probably wrap that command in a try-catch EDIT: |
Ah yes, I have been experiencing this error myself. I know that in Linux-type systems, |
The apache <-> Bakery user permission problem can also be handled by bakery asking apache to do it (using curl or similar method).
|
This issue is starting to annoy me. I even have an issue where if Anyone as an idea how we could handle clearing cache from bakery, i.e. the too issues:
|
Ok so Laravel clear the route cache file directly : https://github.com/laravel/framework/blob/bd352a0d2ca93775fce8ef02365b03fc4fb8cbb0/src/Illuminate/Foundation/Console/RouteClearCommand.php#L51 As for the permission issue, I wonder why are they not created with 777 permission out of the box 🤔. Symfony does it, not sure about Laravel, since we're using their cache... oh wait... |
On the permission issue, just to keep a trace in case this show up again later : tl;dr (Damn, will still have a permission issue when deleting the route cache file 🤔 ) |
Twig and Router cache should be fixed in commit 3027b6c. I did some more research on my permission issue. It's specific to tags apparently. I'll try to add something to throw an error if cache can't be written. So far, it produce false positive on my system (says cache is cleared when it's not). |
So in the "going live" guide, I actually recommend making the webserver user, and the user account you use over SSH, part of the same group. Then you can just give the group write permissions. |
I found out in some test that Apache can create file with non group write permission. Umask related or something. |
Hmm, ok. So is this fixed now? |
yes ! |
The
php bakery clear-cache
command currently delete the illuminate cache instance, but not the route and Twig cache. This can cause confusion on production system.The text was updated successfully, but these errors were encountered: