[wp-trac] [WordPress Trac] #13732: Why are we _maybe_update'ing on admin-ajax?
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 5 01:39:11 UTC 2010
#13732: Why are we _maybe_update'ing on admin-ajax?
-----------------------------+----------------------------------------------
Reporter: mitchoyoshitaka | Owner: dd32
Type: defect (bug) | Status: new
Priority: low | Milestone:
Component: Upgrade/Install | Version: 3.0
Severity: normal | Keywords: has-patch
-----------------------------+----------------------------------------------
I was tracking down a slow-ish admin-ajax call today and noticed that
_maybe_update_core, _maybe_update_plugins, and _maybe_update_themes get
called during the course of an admin-ajax call.
Best case we're making three SQL calls to get the transients... worst case
we'll actually check if we need to update.
Do we really need these in admin-ajax calls? Attached is a proposed patch.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13732>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list