10000 Opcache + Twig Templates · Issue #12172 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Opcache + Twig Templates #12172

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

Closed
trsteel88 opened this issue Oct 8, 2014 · 3 comments
Closed

Opcache + Twig Templates #12172

trsteel88 opened this issue Oct 8, 2014 · 3 comments

Comments

@trsteel88
Copy link
Contributor

I know this probably isn't a Symfony thing but it seems to only be happening within my Symfony apps.

We are running PHP 5.5.13 with Opcache enabled. Whenever we deploy, the templates within Twig never update. We have to restart apache before these take effect.

We are deploying with Capifony and using Symlinks. I am not quite sure if this is an issue on PHP's side of things or if there is a work around that people may know of.

Here is my php opcache config:

[opcache]
opcache.memory_consumption=512
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=2
opcache.revalidate_path=1
opcache.fast_shutdown=1
opcache.enable_cli=1
opcache.enable=1
opcache.validate_timestamps=1
opcache.enable_file_override=1
@mvrhov
Copy link
mvrhov commented Oct 8, 2014

This sounds exactly like zendtech/ZendOptimizerPlus#126.
And AFAIR there is no solution for apache. However the solution for nginx is written in comments.

@jakzal
Copy link
Contributor
jakzal commented Oct 8, 2014

Closing as Symfony cannot do much about it (see the link from @mvrhov).

@jakzal jakzal closed this as completed Oct 8, 2014
@jakzal
Copy link
Contributor
jakzal commented Oct 8, 2014

However, if I understand the comments there, it might be influenced by #10999 (it's good to have this issue in mind when doing #10999).

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

No branches or pull requests

3 participants
0