Index: trunk/wp-content/plugins/xpressme/xpressme.php
===================================================================
--- trunk/wp-content/plugins/xpressme/xpressme.php	(revision 32)
+++ trunk/wp-content/plugins/xpressme/xpressme.php	(revision 46)
@@ -9,5 +9,14 @@
 */
 require_once('xpressme_class.php');
+require_once dirname( __FILE__ ).'/include/custom_functions.php' ;
+
+
 $xpessme = new XPressME_Class();
+
+
+$xoops_db = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);
+$xoops_db->prefix = get_xoops_prefix();
+$xoops_db->tables = array('modules', 'newblocks', 'users');
+
 
 add_action('admin_menu', array(&$xpessme, 'add_option_page'));
@@ -17,5 +26,13 @@
 	remove_action( 'pre_post_update', 'wp_save_post_revision' );			// Not Save Post Revision
 }
+add_action("comment_post",	"block_cache_refresh");
+add_action("edit_comment",	"block_cache_refresh");
+add_action("delete_comment","block_cache_refresh");
+add_action("delete_post",	"block_cache_refresh");
+add_action("publish_post",	"block_cache_refresh");
+add_action("edit_post",		"block_cache_refresh");
+add_action("private_to_published",	"block_cache_refresh");
+add_action("wp_set_comment_status" , "block_cache_refresh");
+
 //require_once('../include/custom_functions.php');
-require_once dirname( __FILE__ ).'/include/custom_functions.php' ;
 ?>
