[wp-trac] [WordPress Trac] #20331: Expire WP_Theme cache on updates and theme edits

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 30 14:12:34 UTC 2012


#20331: Expire WP_Theme cache on updates and theme edits
--------------------------+-----------------
 Reporter:  nacin         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  3.4
Component:  Themes        |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------
 When saving a file in wp-admin/theme-editor.php, we should force a cache
 delete.

 Additionally, cache deletes should occur when an update occurs. Otherwise
 we may be reading old Version numbers from disk.

 When deleting the cache, we will need to refresh the headers that exist in
 the current object instance. A simple $this->__construct() can re-
 initialize everything. This will enable us to call $theme->cache_delete()
 at any time to force fresh information.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20331>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list