Make WordPress Core


Ignore:
Timestamp:
10/09/2008 12:50:52 AM (16 years ago)
Author:
ryan
Message:

Suspend cache invalidation while importing posts with WP importer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/wordpress.php

    r9100 r9106  
    718718        $this->import_start();
    719719        $this->get_authors_from_post();
     720        wp_suspend_cache_invalidation(true);
    720721        $this->get_entries();
    721722        $this->process_categories();
    722723        $this->process_tags();
    723724        $result = $this->process_posts();
     725        wp_suspend_cache_invalidation(false);
    724726        $this->backfill_parents();
    725727        $this->backfill_attachment_urls();
Note: See TracChangeset for help on using the changeset viewer.