Revision: 12308
http://sourceforge.net/p/xoops/svn/12308
Author: rgriffith
Date: 2014-02-14 04:08:02 +0000 (Fri, 14 Feb 2014)
Log Message:
-----------
Include fix for #1261 as proposed by Irmtfan
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.7/htdocs/header.php
Modified: XoopsCore/branches/2.5.x/2.5.7/htdocs/header.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.7/htdocs/header.php 2014-02-12 17:39:12 UTC (rev 12307)
+++ XoopsCore/branches/2.5.x/2.5.7/htdocs/header.php 2014-02-14 04:08:02 UTC (rev 12308)
@@ -84,14 +84,14 @@
if (!empty($xoopsModule)) {
$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') {
+ } elseif (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') {
$xoTheme->contentCacheLifetime = 604800;
}
$xoopsPreload->triggerEvent('core.header.checkcache');
if ($xoTheme->checkCache()) {
- $xoopsPreload->triggerEvent('core.header.cacheend');
- exit();
+ $xoopsPreload->triggerEvent('core.header.cacheend');
+ //exit(); // see https://sourceforge.net/p/xoops/bugs/1261/
}
if (!isset($xoopsOption['template_main']) && $xoopsModule) {
|