|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu Jun 04, 2015 12:03 am Post subject: |
|
|
If you call clearCompiledTemplate() for a single template name you must set up the corresponding compile_id as you have done now. |
|
Back to top |
|
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Wed Sep 09, 2015 6:25 am Post subject: |
|
|
Hello,
For information I know now what was my problem with clearing templates.
opcache is activated for php on my server and when I disable it everything is working fine but not when it is disabled.
Yesterday I enable opcache.revalidate_path which is disabled by default and it seems that now it is ok with opcache. Let's see
Others experience on this? _________________ http://www.letsGarden.info |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
|
Back to top |
|
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Sun Sep 13, 2015 9:49 am Post subject: |
|
|
Hello,
Hereafter my current configuration in php.ini (for now all seems ok)
Code: | opcache.memory_consumption=2048
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=100000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=0
opcache.max_wasted_percentage=10
opcache.enable=1
opcache.revalidate_path=1 |
Regarding opcache.validate_timestamps, the default value is "1" so it is enable _________________ http://www.letsGarden.info |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sun Sep 13, 2015 10:50 am Post subject: |
|
|
Code: | opcache.revalidate_freq=60 |
Will check timestamps every minute. You may see recompiled templates and update cache files with a larger delay.
Starting withe the upcoming version 3.1.28 Smarty will invalidate and deleted files automatically. So validation should not be necessary any longer at all.
For the time being the default value of
Code: | opcache.revalidate_freq=2 |
might be better. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Mon Sep 14, 2015 10:32 pm Post subject: |
|
|
The fix is now already on github in the master branch.
It should work now independent from any OPCACHE settings. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|