[wp-trac] [WordPress Trac] #25542: Function "set_site_transient" is executed twice for plugins - Is it necessary?
WordPress Trac
noreply at wordpress.org
Fri Nov 1 07:52:28 UTC 2013
#25542: Function "set_site_transient" is executed twice for plugins - Is it
necessary?
-------------------------------------------------+-------------------------
Reporter: johnstonphilip | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Performance | Review
Severity: trivial | Version: 3.6.1
Keywords: 2nd-opinion needs-testing dev- | Resolution:
feedback |
-------------------------------------------------+-------------------------
Comment (by nacin):
It might speed up the process, but it would stop the prevention of
multiple blocking requests if request hangs, as the comment says. This
isn't a change we can make.
You should cache your own API call within your own transient, or just non-
persistently cache it, that way you aren't doing the exact same request
multiple times on the same page. Maybe in the future we might also
introduce better hooks here.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25542#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list