Brian Lovett
Member
I've created an add-on that has a few options and some template modifications. The options directly correlate to the template modifications, in other words, when an option is changed the template modification may add a class to certain html elements.
The issue I'm having is there is some caching going on that does not make these changes immediate. So either the added class will appear when it shouldn't or vice versa for a while till the cache clears (usually takes many hard refreshes). I've turned opcache off and also tried setting revalidate_freq to 0, neither of which worked. I've also added
If I go into the template modifications and either re save or turn off and back on, it all works.
Is there something I need to do within my addon so that when options are changed the template modifications are updated appropriately?
The issue I'm having is there is some caching going on that does not make these changes immediate. So either the added class will appear when it shouldn't or vice versa for a while till the cache clears (usually takes many hard refreshes). I've turned opcache off and also tried setting revalidate_freq to 0, neither of which worked. I've also added
Code:
$config['cache']['enabled'] = false;
If I go into the template modifications and either re save or turn off and back on, it all works.
Is there something I need to do within my addon so that when options are changed the template modifications are updated appropriately?