[wp-trac] [WordPress Trac] #10505: Gears not override-able by plugins
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 29 08:22:28 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:
-------------------------------+--------------------------------------------
Comment(by Denis-de-Bernardy):
Hehe, seems DD32 and I had a similar idea at the same time... Posting the
reply nonetheless...
---
Makes sense, yeah. What if we stored some kind of reference in a php file?
On the first page load, we'd load WP in its entirety, and we provide a
hook to add to the manifest. After outputting the result, we cache it (as
a php file or a serialized array, stored in wp-content or wherever is
appropriate).
On subsequent page loads, that cached array exists, so we fetch it
directly without bothering to load WP.
WP could flush the file where it's the most likely to be needed (e.g.
activate/deactivate plugin and theme). We'd also want a hook or function
that allows plugins to force a flush in the event it's needed (e.g. a
change of user pref).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10505#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list