PHPackages                             markjaquith/wp-tlc-transients - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. markjaquith/wp-tlc-transients

ActiveLibrary[Caching](/categories/caching)

markjaquith/wp-tlc-transients
=============================

A WP transients interface with support for soft-expiration, background updating of the transients.

1.0(13y ago)34175.3k↑151.8%36[4 issues](https://github.com/markjaquith/WP-TLC-Transients/issues)[5 PRs](https://github.com/markjaquith/WP-TLC-Transients/pulls)3GPL-2.0+PHP

Since May 7Pushed 5y ago20 watchersCompare

[ Source](https://github.com/markjaquith/WP-TLC-Transients)[ Packagist](https://packagist.org/packages/markjaquith/wp-tlc-transients)[ Docs](https://github.com/markjaquith/WP-TLC-Transients)[ RSS](/packages/markjaquith-wp-tlc-transients/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (3)

TLC Transients
==============

[](#tlc-transients)

A WordPress transients interface with support for soft-expiration (use old content until new content is available), background updating of the transients (without having to wait for a cron job), and a chainable syntax that allows for one liners.

License
-------

[](#license)

TLC Transients is licensed under the GPL, version 2.0 or any later version. See `LICENSE`.

Examples
--------

[](#examples)

In this simple example, we're defining a feed-fetching callback, and then using `tlc_transient` with a chain to point to that callback and use it, all in one line. Note that since we haven't used `background_only()`, the initial load of this **will** cause the page to pause.

```
