[wp-trac] [WordPress Trac] #10505: Gears not override-able by plugins
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 29 08:20:40 UTC 2009
#10505: Gears not override-able by plugins
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Cache | Version: 2.9
Severity: normal | Keywords:
-------------------------------+--------------------------------------------
Changes (by dd32):
* version: => 2.9
Comment:
> it kind of defeats the purpose if we load all to output it. That would
also mean we will be loading WordPress twice for each page
The other option is to bootstrap them:
* Store a cached manifest, If it exists, and its within whatever time
limit, use that
* Else, if the cache file is writable, Load WP for hooks
* Else, If not writable, just use the default items
Use a much-longer-than-normal cache timeout, ie. a week or something, and
add something on a hook in wp-admin to delete the cached file if the
number of hooking functions changes.. (ie. on admin_footer, {{{if
get_transient('manifest_files') !=
get_current_hoooking_functions('gears_manifest_files')
delete_file($manifest_cache)}}}) - Just a thought.. seems a bit much for
something simple to me though..
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10505#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list