Make WordPress Core


Ignore:
Timestamp:
03/30/2012 02:39:05 PM (10 years ago)
Author:
nacin
Message:

Clear theme cache after editing. Reduce default cache persistence to 1800. (Could go lower.) see #20331.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-theme.php

    r20327 r20328  
    155155     * @var bool
    156156     */
    157     private static $cache_expiration = 7200;
     157    private static $cache_expiration = 1800;
    158158
    159159    /**
     
    504504        foreach ( array( 'theme', 'screenshot', 'screenshot_count', 'files', 'headers', 'page_templates' ) as $key )
    505505            wp_cache_delete( $key . '-' . $this->cache_hash, 'themes' );
     506        $this->template = $this->textdomain_loaded = $this->theme_root_uri = $this->parent = $this->errors = $this->headers_sanitized = $this->name_translated = null;
     507        $this->headers = array();
     508        $this->__construct( $this->stylesheet, $this->theme_root );
    506509    }
    507510
Note: See TracChangeset for help on using the changeset viewer.