Index: trunk/wp-content/plugins/xpressme/include/custom_functions.php
===================================================================
--- trunk/wp-content/plugins/xpressme/include/custom_functions.php	(revision 140)
+++ trunk/wp-content/plugins/xpressme/include/custom_functions.php	(revision 141)
@@ -264,19 +264,19 @@
 function xpress_conditional_title($display = true)
 {
-	$output = __('Main', 'xpress');
+	$output = __('Main', 'xpressme');
 	if (is_category())
-		$output = sprintf(__('Archive for the &#8216;%s&#8217; Category', 'xpress'), single_cat_title('', false));
+		$output = sprintf(__('Archive for the &#8216;%s&#8217; Category', 'xpressme'), single_cat_title('', false));
 	if (is_tag())
-		$output = sprintf(__('Posts Tagged &#8216;%s&#8217;', 'xpress'), single_tag_title('', false) );
+		$output = sprintf(__('Posts Tagged &#8216;%s&#8217;', 'xpressme'), single_tag_title('', false) );
 	if (is_day())
-		$output = sprintf(_c('Archive for %s|Daily archive page', 'xpress'), get_the_time(__('F jS, Y', 'xpress')));
+		$output = sprintf(__('Archive for %s|Daily archive page', 'xpressme'), get_the_time(__('F jS, Y', 'xpressme')));
 	if (is_month())
-		$output = sprintf(_c('Archive for %s|Monthly archive page', 'xpress'), get_the_time(__('F, Y', 'xpress')));
+		$output = sprintf(__('Archive for %s|Monthly archive page', 'xpressme'), get_the_time(__('F, Y', 'xpressme')));
 	if (is_year())
-		$output = sprintf(_c('Archive for %s|Yearly archive page', 'xpress'), get_the_time(__('Y', 'xpress')));
+		$output = sprintf(__('Archive for %s|Yearly archive page', 'xpressme'), get_the_time(__('Y', 'xpressme')));
 	if (is_author())
-		$output = get_author_name( get_query_var('author')); __('Author Archive', 'xpress');
+		$output = sprintf(__('Archive for the &#8216;%s&#8217; Author', 'xpressme'), get_author_name( get_query_var('author')));
 	if (is_search())
-		$output = __('Search Results', 'xpress');
+		$output = __('Search Results', 'xpressme');
 		
 	if ($display) 
Index: trunk/wp-content/plugins/xpressme/include/xpress_common_functions.php
===================================================================
--- trunk/wp-content/plugins/xpressme/include/xpress_common_functions.php	(revision 140)
+++ trunk/wp-content/plugins/xpressme/include/xpress_common_functions.php	(revision 141)
@@ -128,3 +128,29 @@
 }
 
+function block_cache_refresh() 
+{ 
+	global $xoops_db; 
+	$mid = get_xpress_modid(); 
+	$sql = "SELECT bid,options,func_file FROM " . get_xoops_prefix() . "newblocks WHERE mid = $mid"; 
+	$blocks = $xoops_db->get_results($sql); 
+	$mydirname = get_xpress_dir_name(); 
+	require_once get_xpress_dir_path() . '/include/xpress_block_render.php'; 
+
+
+	foreach($blocks as $block){ 
+		$func_file = $block->func_file; 
+		$call_theme_function_name = str_replace(".php", "", $func_file); 
+		$inc_theme_file_name = str_replace(".php", "", $func_file) . '_theme.php'; 
+		$cache_title = str_replace(".php", "", $func_file); 
+		$blockID = $block->bid; 
+		$options = explode("|", $block->options); 
+
+		$block_theme_file = get_block_file_path($mydirname,$inc_theme_file_name); 
+		require_once $block_theme_file; 
+		$block_render = $call_theme_function_name($options);            //The block name and the called function name should be assumed to be the same name.                     
+		$xml['block'] = $block_render; 
+		$xml['block']['options'] = $block->options; 
+		xpress_block_cache_write($mydirname,$cache_title. $blockID, $xml); 
+	} 
+}
 ?>
