The solution here:
(you have to download first plg_gkcache.zip (2.72 KB))
Problem is strictly relate with the cache system - we'll solve it in the next Gavern upgrade. Currently you can use our temporary solution which will be used in the mentioned update:
The problem is caused by fact that GK Parser is running after System Cache plugin. To avoid this please do following steps:
- set the System Cache plugin as a last plugin using ordering column in the plugins management
- install attached GK Cache plugin
- set the GK Cache plugin before System Cache plugin using ordering column
- edit the templateDetails.xml file: after line
<field name="gk_line_12" type="line" text="" />
please add:
<field name="use_gk_cache" type="list" class="gk_switch" default="0" label="TPL_GK_LANG_USE_GK_CACHE" description="TPL_GK_LANG_USE_GK_CACHE_DESC">
<option value="1">TPL_GK_LANG_ENABLED</option>
<option value="0">TPL_GK_LANG_DISABLED</option>
</field>
- in the template language file please add at end these two lines:
TPL_GK_LANG_USE_GK_CACHE="Use GK Cache"
TPL_GK_LANG_USE_GK_CACHE_DESC="If you're using System Cache plugin you should enable also GK Cache plugin running before System Cache plugin in order to get GK Parser working properly"
- in the lib/gk.framework.php file please replace lines:
// define an event for replacement
$dispatcher = JDispatcher::getInstance();
$dispatcher->register('onAfterRender', 'GKParserPlugin');
with:
// define an event for replacement
$dispatcher = JDispatcher::getInstance();
// set a proper event for GKParserPlugin
if($this->getParam('use_gk_cache', 0) == 0) {
$dispatcher->register('onAfterRender', 'GKParserPlugin');
} else {
$dispatcher->register('onBeforeCache', 'GKParserPlugin');
}
- go to the TWN2 template options and in the "Advanced settings" please enable option "Use GK Cache" and save the template options
- clear the Joomla! cache
- refresh article page two times - it should now works fine with enabled Joomla! cache.
--