Delete page_uris option before updating it to avoid possibly expensive array comparison. #3614
git-svn-id: https://develop.svn.wordpress.org/trunk@4773 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f8241d6c37
commit
a41ca94341
@ -1181,10 +1181,13 @@ function generate_page_uri_index() {
|
|||||||
$page_uris[$uri] = $id;
|
$page_uris[$uri] = $id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete_option('page_uris');
|
||||||
update_option('page_uris', $page_uris);
|
update_option('page_uris', $page_uris);
|
||||||
|
|
||||||
if ( $page_attachment_uris )
|
if ( $page_attachment_uris ) {
|
||||||
|
delete_option('page_attachment_uris');
|
||||||
update_option('page_attachment_uris', $page_attachment_uris);
|
update_option('page_attachment_uris', $page_attachment_uris);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user