mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-02 00:57:40 +02:00
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:
parent
85a2305bd4
commit
5e3516bd23
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user