-
Notifications
You must be signed in to change notification settings - Fork 715
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
template changes take some seconds to recompile with PHP5 opcache enabled. #72
Comments
I think the problem is the opcache.revalidate_freq parameter which controls how often opcache does check for modifications. It should be
which means always revalidate. |
I think that your solution is short sighted. The factory default setting of php 5.5 for the opcache is Which means that every person using smarty with PHP5 would need to adjust their php settings. This is not good for publicly distributed software applications using smarty. A better solution would be to change the code such that this file does not get included twice. A fallback solution would be to call opcache_invalidate on the file before including it. Which should solve the problem without making every smarty user using PHP 5.5 adjust their PHP settings and would still take advantage of the opcode cache for repeated requests when the template does not need to be recompiled. |
The patch is now in dev-master |
…e-php5-to-php7-diagnostic-code-for-note-42 Redmine-#5313:[レスポンス改善] サーバーサイドをPHP5→PHP7にアップグレードする
Problem:
Severity: MAJOR
Symptoms:
How to reproduce:
Problem Area:
Sample code
Test template
The text was updated successfully, but these errors were encountered: