Skip to content
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

Fix Symfony cache generation between web / cli #8

Merged
merged 1 commit into from Jul 23, 2019

Conversation

pyrech
Copy link
Member

@pyrech pyrech commented Jul 23, 2019

We now use the same absolute path between NGINX and workers to avoid Symfony regenerating the cache every time.

Ref

@pyrech pyrech requested a review from lyrixx July 23, 2019 08:28
@lyrixx lyrixx merged commit 63e0e82 into master Jul 23, 2019
@lyrixx lyrixx deleted the fix-symfony-cache-generation branch July 23, 2019 08:42
@jbdelhommeau
Copy link
Contributor

jbdelhommeau commented Jul 30, 2019

@pyrech I don't understand difference beetwen /home/app/app and /var/www update.
How does that fix the problem ? You have change path both.

@lyrixx
Copy link
Member

lyrixx commented Jul 30, 2019

We are using /home/app/app everywhere now (cli and fpm)

@jbdelhommeau
Copy link
Contributor

Ok.
But this not fix problem when you clear cache locally ;) cache will always generate absolutely.

@lyrixx
Copy link
Member

lyrixx commented Jul 30, 2019

To clear cache from your host, just run rm -rf var/cache/, it's faster, and there are no issues with permissions nor absolute vs relative path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants