Closed NateJacobs closed 11 years ago
Minimum should be day.
Add drop-down on settings page.
Add setting for each type of return.
Instead of a settings option add a filter to allow the values to be changed from code.
Filters were added to allow developers to override the transient time. Decisions not options. This was closed by the 3dot6 pull request.
Provide an option in the plugin settings for each call and set how long, using transient constants, each response should persist.
MINUTE_IN_SECONDS = 60 (seconds) HOUR_IN_SECONDS = 60 * MINUTE_IN_SECONDS DAY_IN_SECONDS = 24 * HOUR_IN_SECONDS WEEK_IN_SECONDS = 7 * DAY_IN_SECONDS YEAR_IN_SECONDS = 365 * DAY_IN_SECONDS
http://codex.wordpress.org/Transients_API