1
In mytab 2.1 for xoops, I added the following code in a new file of mytabs_block_ajax.php which is called by original mytabs_block.php so that the block content can be loaded separately under each tab.
==================
include '../../../mainfile.php';
include_once XOOPS_ROOT_PATH."/class/template.php";
include_once XOOPS_ROOT_PATH.'/modules/mytabs/include/functions.php';
$GLOBALS['xoopsTpl'] =& new XoopsTpl();
$tab_blocks = mytabsblock_show($_GET['pageid'], $_GET['tabid'],'',$_GET['o']);
echo $tab_blocks[0]['content'];
==================
It works properly. However, by the original block, it generates caches start with modulename-default-deafult-xxxx. However, under the content generated by ajax tab, it becomes system-default-defult-xxxx. Is there any method to synchronize the cache name so that it won't duplicate loaded?