[wp-trac] [WordPress Trac] #29351: Add a function for stampedes transient caching

WordPress Trac noreply at wordpress.org
Wed Mar 11 13:43:13 UTC 2015


#29351: Add a function for stampedes transient caching
----------------------------+------------------------------
 Reporter:  hypertextranch  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Cache API       |     Version:  4.0
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  performance
----------------------------+------------------------------

Comment (by jipmoors):

 I think the point is valid but with this patch you are ''polluting'' the
 transient space with meta data and not respecting existing data or the
 possibility that some code uses your function to set and other code uses
 get_transient to read the data.

 Perhaps a separate meta transient would be a better option. Allowing for
 unmodified `get_transient` & `set_transient` functionality. This would
 increase cache / meta requests but I guess this functionality would only
 be used on large or slow data so would be worth it to provide the option
 to use it.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29351#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list