From: <dh...@us...> - 2012-06-15 10:08:31
|
Revision: 9647 http://xoops.svn.sourceforge.net/xoops/?rev=9647&view=rev Author: dhcst Date: 2012-06-15 10:08:20 +0000 (Fri, 15 Jun 2012) Log Message: ----------- fix cache from file Modified Paths: -------------- XoopsCore/trunk/htdocs/header.php Modified: XoopsCore/trunk/htdocs/header.php =================================================================== --- XoopsCore/trunk/htdocs/header.php 2012-06-15 10:01:25 UTC (rev 9646) +++ XoopsCore/trunk/htdocs/header.php 2012-06-15 10:08:20 UTC (rev 9647) @@ -82,10 +82,12 @@ // Sets cache time if (!empty($xoopsModule)) { - $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')]; + if ( empty($xoopsConfig['theme_fromfile']) ) + $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')]; // Tricky solution for setting cache time for homepage } else if (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') { - $xoTheme->contentCacheLifetime = 604800; + if ( empty($xoopsConfig['theme_fromfile']) ) + $xoTheme->contentCacheLifetime = 604800; } $xoopsPreload->triggerEvent('core.header.checkcache'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |