| @@ 530-534 (lines=5) @@ | ||
| 527 | $xoopsTpl = new XoopsTpl(); |
|
| 528 | $xoopsTpl->xoops_setCaching(2); |
|
| 529 | if ($block->getVar('template') != '') { |
|
| 530 | if ($xoopsTpl->is_cached('db:'.$block->getVar('template'))) { |
|
| 531 | if (!$xoopsTpl->clear_cache('db:'.$block->getVar('template'))) { |
|
| 532 | $msg = 'Unable to clear cache for block ID'.$bid; |
|
| 533 | } |
|
| 534 | } |
|
| 535 | } else { |
|
| 536 | if ($xoopsTpl->is_cached('db:system_dummy.html', 'blk_'.$bid)) { |
|
| 537 | if (!$xoopsTpl->clear_cache('db:system_dummy.html', 'blk_'.$bid)) { |
|
| @@ 535-541 (lines=7) @@ | ||
| 532 | $msg = 'Unable to clear cache for block ID'.$bid; |
|
| 533 | } |
|
| 534 | } |
|
| 535 | } else { |
|
| 536 | if ($xoopsTpl->is_cached('db:system_dummy.html', 'blk_'.$bid)) { |
|
| 537 | if (!$xoopsTpl->clear_cache('db:system_dummy.html', 'blk_'.$bid)) { |
|
| 538 | $msg = 'Unable to clear cache for block ID'.$bid; |
|
| 539 | } |
|
| 540 | } |
|
| 541 | } |
|
| 542 | } else { |
|
| 543 | $msg = 'Failed update of block. ID:'.$bid; |
|
| 544 | } |
|