Suspend cache invalidation while importing posts with WP importer

git-svn-id: https://develop.svn.wordpress.org/trunk@9106 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-10-09 00:50:52 +00:00
parent 680d9c369f
commit ec205359bc
3 changed files with 27 additions and 1 deletions

View File

@@ -717,10 +717,12 @@ class WP_Import {
$this->import_start();
$this->get_authors_from_post();
wp_suspend_cache_invalidation(true);
$this->get_entries();
$this->process_categories();
$this->process_tags();
$result = $this->process_posts();
wp_suspend_cache_invalidation(false);
$this->backfill_parents();
$this->backfill_attachment_urls();
$this->import_end();