Make WordPress Core


Ignore:
Timestamp:
02/05/2009 09:59:37 PM (15 years ago)
Author:
ryan
Message:

Cookie support for HTTP API. Props beaulebens. fixes #9049 #9037 #8727

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/rewrite.php

    r10508 r10512  
    15971597     */
    15981598    function wp_rewrite_rules() {
    1599         $this->rules = get_option('rewrite_rules');
     1599        $this->rules = get_transient('rewrite_rules');
    16001600        if ( empty($this->rules) ) {
    16011601            $this->matches = 'matches';
    16021602            $this->rewrite_rules();
    1603             update_option('rewrite_rules', $this->rules);
     1603            set_transient('rewrite_rules', $this->rules);
    16041604        }
    16051605
     
    17841784     */
    17851785    function flush_rules() {
    1786         delete_option('rewrite_rules');
     1786        delete_transient('rewrite_rules');
    17871787        $this->wp_rewrite_rules();
    17881788        if ( function_exists('save_mod_rewrite_rules') )
Note: See TracChangeset for help on using the changeset viewer.