Transients And Docket Cache
Where WordPress keeps transients when Docket Cache is active, how long they last, and when to keep them in the database instead.
News, background and how-tos from the Docket Cache project. Atom feed
Where WordPress keeps transients when Docket Cache is active, how long they last, and when to keep them in the database instead.
Every 5 minutes, the Docket Cache garbage collector checks each cache file and removes the ones that are no longer needed. This is what it checks, in order.
A look at the sites connected to Cronbot. Which versions of Docket Cache and WordPress they run, where they are, and how many answer each ping.
Docket Cache adds its own commands to wp cache. These are the most useful ones, with real output, and how to use them in scripts and cron jobs.
With Docket Cache active, the Current Wasted number in OPcache keeps going up. This is why it happens, what Docket Cache 26.04.12 changes, and how to keep it under control.
Object Cache Precaching remembers which cached values each page needs, and loads them first on the next visit. This is how it works, and when to turn it on.
Shared hosting limits disk activity, the number of files and the number of processes. This is how Docket Cache fits within those limits, and which settings to change first.
Docket Cache saves its cache as plain PHP files, so that OPcache can keep them in memory. This is how that works, and what happens when OPcache runs out of room.
Four simple ways to check that Docket Cache is caching your site, from the Overview screen to WP-CLI and Site Health, and what to check when it is not.
Since 26.04.09, Docket Cache no longer contacts api.docketcache.com. This is what the old Critical Version Checking option did, and why we removed it.
Docket Cache has to work on many versions of PHP and WordPress, on single sites and on multisite. This is how we use WP Staging CLI to build and test those sites on one computer.
Docket Cache, Redis and Memcached all keep the WordPress object cache between pages. This is how they differ, and how to choose one for your site.
Docket Cache 26.04.10 crashed some sites running SEOPress PRO and WooCommerce. This is what went wrong, why our tests did not catch it, and how 26.04.11 fixed it.
Since 26.04.10, Docket Cache returns cached strings exactly as they were stored. This is why we changed it, and what it means for your site.
Cronbot keeps the Docket Cache garbage collector running, even when WP-Cron cannot run on its own. We rewrote its server in Go. It sends more pings at once, and your site needs no update.
We rebuilt docketcache.com from scratch. It is now a small static site with the docs, the blog and the contact form in one place, and no WordPress to look after.
WordPress loads many settings on every page in one big list called alloptions. This is why that list grows, and how Docket Cache keeps it small.
The Docket Cache runtime code lets you change some WordPress settings from the admin screen, without editing the wp-config.php file yourself.
Our first Docket Cache t-shirts were booked in a short time, and the earnings went towards the server. This is how you can support Docket Cache today.
What object caching is, why WordPress forgets its cache after every page, and how a persistent object cache fixes that.