[wp-trac] [WordPress Trac] #24686: Introduce generic filter on transient return value
WordPress Trac
noreply at wordpress.org
Wed Oct 5 13:44:57 UTC 2016
#24686: Introduce generic filter on transient return value
-----------------------------------+-----------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: Cache API | Version: 2.8
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+-----------------------
Changes (by welcher):
* status: closed => reopened
* resolution: wontfix =>
Comment:
I have a use case where a generic filter would be extremely useful.
I have written a plugin to bypass transients on a per page basis
https://github.com/ryanwelcher/suspend-transients. In order to bypass
transients, we need to know their names.
Getting the name requires retrieving them from the database or capturing
them using the `setted_transient` action and then storing them somewhere (
in my case an option )
Once we have the names of the transients, we then have to add a filter for
each one - which can be a very large number of filters to add - and will
eventually cause performance issues.
Having a generic filter would address both these issues.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24686#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list