|
From: Jon O. <jon...@us...> - 2005-12-14 13:49:27
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8214/includes Modified Files: mx_functions.php mx_functions_core.php Log Message: minor fixes - adding regenereate cache also for fresh install Index: mx_functions_core.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_core.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** mx_functions_core.php 13 Dec 2005 20:57:02 -0000 1.20 --- mx_functions_core.php 14 Dec 2005 13:49:08 -0000 1.21 *************** *** 762,772 **** // Now also clear the config/custom cache // ! $mx_config_cache->tidy(); ! $mx_config_cache->unload(); } - - - } // class mx_cache --- 762,772 ---- // Now also clear the config/custom cache // ! if (is_object($mx_config_cache)) ! { ! $mx_config_cache->tidy(); ! $mx_config_cache->unload(); ! } } } // class mx_cache *************** *** 2183,2187 **** function update_session_cache( $id = '' ) { ! global $mx_cache; if (!is_object($mx_cache)) --- 2183,2187 ---- function update_session_cache( $id = '' ) { ! global $mx_cache, $mx_config_cache; if (!is_object($mx_cache)) *************** *** 2210,2213 **** --- 2210,2227 ---- $mx_cache->update( MX_CACHE_BLOCK_TYPE, $id ); } + + // + // Now also clear the config/custom cache + // + if (!is_object($mx_config_cache)) + { + // + // instatiate the mx_config_cache class + // + $mx_config_cache = new mx_config_cache(); + } + + $mx_config_cache->tidy(); + $mx_config_cache->unload(); } ?> \ No newline at end of file Index: mx_functions.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions.php,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** mx_functions.php 14 Dec 2005 12:38:00 -0000 1.56 --- mx_functions.php 14 Dec 2005 13:49:08 -0000 1.57 *************** *** 583,589 **** $page_id_array = unserialize( $mx_config_cache->get( $cache_key ) ); } ! ! ! if (empty($page_id_array['page_id'])) { if( $use_function_file ) --- 583,587 ---- $page_id_array = unserialize( $mx_config_cache->get( $cache_key ) ); } ! else { if( $use_function_file ) |