mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user