Only flush cache if the DB is out-of-date.

git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-04-21 21:33:50 +00:00
parent 85a2305bd4
commit 5e3516bd23

View File

@ -75,10 +75,13 @@ switch($step) {
break;
case 1:
wp_cache_flush();
make_db_current_silent();
upgrade_all();
wp_cache_flush();
$wp_current_db_version = __get_option('db_version');
if ( $wp_db_version < $wp_current_db_version ) {
wp_cache_flush();
make_db_current_silent();
upgrade_all();
wp_cache_flush();
}
if ( empty( $_GET['backto'] ) )
$backto = __get_option('home');