• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

timber / timber / 43921886859
91%
master: 93%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/WyriHaximus/github-action-composer-php-versions-in-range-2.2.0
DEFAULT BRANCH: master
Ran 16 Nov 2026 05:51PM UTC
Jobs 1
Files 70
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Nov 2026 05:46PM UTC coverage: 90.328% (+0.09%) from 90.236%
43921886859

push

travis-ci

web-flow
perf(cache): Stop sweeping expired transients on every cache miss (#3298)

* perf(cache): stop sweeping expired transients on every cache miss

Loader::render() ran Cleaner::delete_transients() before each set_cache().
That is a site-wide DELETE over the options table on every output-cache miss,
and it removes the expired transients of every plugin, not only Timber's.

WordPress already deletes an expired transient when it is read and runs the
daily delete_expired_transients cron. Loader::delete_cache() and
Cleaner::delete_transients() stay public for callers that want a sweep.

* fix(cache): return the deleted transient count as an integer

Cleaner::delete_transients() joined the query results with the string
operator, so it returned "02" instead of 2. Add the counts instead.

* test(cache): count expired site transients on multisite

* test(cache): make the multisite transient count independent of test order

wpmu_create_blog() leaves wp_installing() on for the rest of the process, so when a test that creates a site runs first, set_transient() and set_site_transient() keep the values in the object cache and only the timeout rows reach the database. Turn wp_installing() off while seeding the transients, start from a clean table and backdate the timeouts by a minute so the exact count does not depend on other leftovers or on clock drift with the database.

* test(cache): start the expired transient count from a clean table

Delete leftover expired transients before seeding the test data and backdate the timeout by a minute, so the exact count only covers the transients the test creates.

* test(cache): assert a cache miss keeps expired timber transients

Count the Timber loader transients before calling Cleaner::delete_transients(), to pin that rendering no longer purges expired entries.

* docs(cache): document delete_transients() and delete_cache()

Cleaner::delete_transients() returns the number of deleted rows as an integer. Loader::delete_cache()... (continued)

2 of 2 new or added lines in 1 file covered. (100.0%)

2 existing lines in 1 file now uncovered.

4791 of 5304 relevant lines covered (90.33%)

72.2 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
90.0
-0.77% src/Loader.php
Jobs
ID Job ID Ran Files Coverage
1 43921886859.1 16 Nov 2026 05:51PM UTC 70
90.33
Travis Job
Source Files on build 43921886859
  • Tree
  • List 70
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #43921886859
  • 18b2f7d3 on github
  • Prev Build on 2.x (#43920723901)
  • Next Build on 2.x (#44071838194)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc