Changeset 20328
- Timestamp:
- 03/30/2012 02:39:05 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/theme-editor.php
r20315 r20328 95 95 fclose( $f ); 96 96 $location .= '&updated=true'; 97 $theme->cache_delete(); 97 98 } 98 99 } -
trunk/wp-includes/class-wp-theme.php
r20327 r20328 155 155 * @var bool 156 156 */ 157 private static $cache_expiration = 7200;157 private static $cache_expiration = 1800; 158 158 159 159 /** … … 504 504 foreach ( array( 'theme', 'screenshot', 'screenshot_count', 'files', 'headers', 'page_templates' ) as $key ) 505 505 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 ); 506 509 } 507 510 -
trunk/wp-includes/theme.php
r20312 r20328 352 352 } 353 353 if ( ! is_int( $cache_expiration ) ) 354 $cache_expiration = 7200;354 $cache_expiration = 1800; // half hour 355 355 } else { 356 // Two hours is the default. 357 $cache_expiration = 7200; 356 $cache_expiration = 1800; // half hour 358 357 } 359 358
Note: See TracChangeset
for help on using the changeset viewer.