Quote:
Originally Posted by princeton
it depends where this template is being used...
this code:
PHP Code:
if (THIS_SCRIPT === showthread)
{
$globaltemplates = array_merge($globaltemplates, array(
'post_thanks_button',
'post_thanks_postbit',
'post_thanks_postbit_legacy'
));
}
will only cache the above templates in showthread.php
if the adv_portal_post_thanks_stats_bit and adv_portal_post_thanks_stats are displayed on the showthread.php page then you can just add it to the $globaltemplates array
PHP Code:
if (THIS_SCRIPT === showthread)
{
$globaltemplates = array_merge($globaltemplates, array(
'post_thanks_button',
'post_thanks_postbit',
'post_thanks_postbit_legacy',
'adv_portal_post_thanks_stats',
'adv_portal_post_thanks_stats_bit'
));
}
if it's on another page.. add
PHP Code:
if (THIS_SCRIPT === script page goes here)
{
$globaltemplates = array_merge($globaltemplates, array(
'adv_portal_post_thanks_stats'
'adv_portal_post_thanks_stats_bit'
));
}
|
ok guys that part work great in forum page i guess we getting there...
now i will show you the two part i have the portal page and the forum page with the cache template problem..
portal page (cmps) :
Uncached templates: adv_portal_post_thanks_stats (1)
Uncached templates: adv_portal_post_thanks_stats_bit (10)
Uncached templates: pagecompressor_stats (1)
And
forum page:
Uncached templates: latestgallery (5)
Uncached templates: pagecompressor_stats (1)
if you can you can visit the site and see 4 ya self:
http://www.puertotech.com user=TEST1 pass=TEST in caps
your help is greatly appreciated trying to fix that problem