Index: trunk/include/xpress_block_render.php
===================================================================
--- trunk/include/xpress_block_render.php	(revision 171)
+++ trunk/include/xpress_block_render.php	(revision 172)
@@ -1,3 +1,5 @@
 <?php
+if(!defined('XPRESS_BLOCK_RENDER_FUNCTION_READ')){
+	define('XPRESS_BLOCK_RENDER_FUNCTION_READ',1);
 	require_once dirname( __FILE__ ) .'/xml.php' ;
 	require_once dirname( __FILE__ ) .'/xpress_cache.php' ;
@@ -190,5 +192,5 @@
 	}
 	
-	function xpress_block_cache_refresh()
+	function xpress_block_cache_refresh($mydirname)
 	{
 		global $xoops_db;
@@ -196,5 +198,4 @@
 		$sql = "SELECT bid,options,func_file FROM " . get_xoops_prefix() . "newblocks WHERE mid = $mid AND visible = 1";
 		$blocks = $xoops_db->get_results($sql);
-		$mydirname = get_xpress_dir_name();
 		require_once get_xpress_dir_path() . '/include/xpress_block_render.php';
 
@@ -228,5 +229,5 @@
 	}
 	
-	function xpress_unnecessary_block_cache_delete()
+	function xpress_unnecessary_block_cache_delete($mydirname)
 	{
 		global $xoops_db,$xoops_config;
@@ -234,5 +235,4 @@
 		$sql = "SELECT bid,options,func_file FROM " . get_xoops_prefix() . "newblocks WHERE mid = $mid AND visible = 1";
 		$blocks = $xoops_db->get_results($sql);
-		$mydirname = get_xpress_dir_name();
 		require_once get_xpress_dir_path() . '/include/xpress_block_render.php';
 
@@ -258,4 +258,4 @@
         } 
     } 
-	
+}	
 ?>
Index: trunk/wp-config.php
===================================================================
--- trunk/wp-config.php	(revision 171)
+++ trunk/wp-config.php	(revision 172)
@@ -101,6 +101,6 @@
 	// This Function in xpressme plugin
 	require_once( ABSPATH .'/include/xpress_block_render.php' );	
-	xpress_unnecessary_block_cache_delete();
-	if (is_home()) xpress_block_cache_refresh();
+	xpress_unnecessary_block_cache_delete($xoops_config->module_name);
+	if (is_home()) xpress_block_cache_refresh($xoops_config->module_name);
 	exit();		// The return to wp-blog-header.php is stolen here
 }
Index: trunk/xoops_version.php
===================================================================
--- trunk/xoops_version.php	(revision 171)
+++ trunk/xoops_version.php	(revision 172)
@@ -31,5 +31,5 @@
 $modversion['name'] = ucfirst($mydirname) . ' ' . constant('_MI_XPRESS_NAME') ;
 $modversion['description'] = constant( '_MI_XPRESS_DESC');
-$modversion['version'] = "0.30";
+$modversion['version'] = "0.31";
 $modversion['credits'] = "Wordpress DEV (http://wordpress.org/) XPressME DEV Toemon) (http://www.toemon.com) ;";
 $modversion['author'] = "toemon (http://www.toemon.com)";
@@ -40,5 +40,5 @@
 
 // status
-$modversion['codename'] = "r170";
+$modversion['codename'] = "r172";
 
 // onInstall, onUpdate, onUninstall
