[wp-trac] [WordPress Trac] #25542: Function "set_site_transient" is executed twice for plugins - Is it necessary?
WordPress Trac
noreply at wordpress.org
Sat Nov 2 01:05: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 dd32):
What you should probably be doing is, on the first transient set, make
your API call, cache it for an hour. On the next transient set, simply re-
use the already-cached data and don't make another API call..
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25542#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list