| @@ 92-97 (lines=6) @@ | ||
| 89 | $template =& $GLOBALS['xoopsTpl']; |
|
| 90 | ||
| 91 | $bcachetime = (int)$blockObj->getVar('bcachetime'); |
|
| 92 | if (empty($bcachetime)) { |
|
| 93 | $template->caching = 0; |
|
| 94 | } else { |
|
| 95 | $template->caching = 2; |
|
| 96 | $template->cache_lifetime = $bcachetime; |
|
| 97 | } |
|
| 98 | ||
| 99 | $template->setCompileId($blockObj->getVar('dirname', 'n')); |
|
| 100 | $tplName = ($tplName = $blockObj->getVar('template')) ? "db:{$tplName}" : 'db:system_block_dummy.tpl'; |
|
| @@ 175-180 (lines=6) @@ | ||
| 172 | 'lastmod' => $xobject->getVar('last_modified')); |
|
| 173 | ||
| 174 | $bcachetime = (int)$xobject->getVar('bcachetime'); |
|
| 175 | if (empty($bcachetime)) { |
|
| 176 | $template->caching = 0; |
|
| 177 | } else { |
|
| 178 | $template->caching = 2; |
|
| 179 | $template->cache_lifetime = $bcachetime; |
|
| 180 | } |
|
| 181 | $template->setCompileId($xobject->getVar('dirname', 'n')); |
|
| 182 | $tplName = ($tplName = $xobject->getVar('template')) ? "db:$tplName" : 'db:system_block_dummy.tpl'; |
|
| 183 | $cacheid = $this->generateCacheId('blk_' . $xobject->getVar('bid')); |
|
| @@ 62-67 (lines=6) @@ | ||
| 59 | $xoopsLogger = XoopsLogger::getInstance(); |
|
| 60 | for ($i = 0; $i < $block_count; ++$i) { |
|
| 61 | $bcachetime = (int)$block_arr[$i]->getVar('bcachetime'); |
|
| 62 | if (empty($bcachetime)) { |
|
| 63 | $xoopsTpl->caching = 0; |
|
| 64 | } else { |
|
| 65 | $xoopsTpl->caching = 2; |
|
| 66 | $xoopsTpl->cache_lifetime = $bcachetime; |
|
| 67 | } |
|
| 68 | $btpl = $block_arr[$i]->getVar('template'); |
|
| 69 | if ($btpl != '') { |
|
| 70 | if (empty($bcachetime) || !$xoopsTpl->is_cached('db:' . $btpl)) { |
|
| @@ 140-145 (lines=6) @@ | ||
| 137 | $xoopsLogger = XoopsLogger::getInstance(); |
|
| 138 | for ($i = 0; $i < $block_count; ++$i) { |
|
| 139 | $bcachetime = (int)$block_arr[$i]->getVar('bcachetime'); |
|
| 140 | if (empty($bcachetime)) { |
|
| 141 | $xoopsTpl->caching = 0; |
|
| 142 | } else { |
|
| 143 | $xoopsTpl->caching = 2; |
|
| 144 | $xoopsTpl->cache_lifetime = $bcachetime; |
|
| 145 | } |
|
| 146 | $btpl = $block_arr[$i]->getVar('template'); |
|
| 147 | if ($btpl != '') { |
|
| 148 | if (empty($bcachetime) || !$xoopsTpl->is_cached('db:' . $btpl)) { |
|