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

bleedingdeacons / concordance / 35408781192
94%

Build:
DEFAULT BRANCH: main
Ran 19 Sep 2026 12:19AM UTC
Jobs 1
Files 14
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

19 Sep 2026 12:16AM UTC coverage: 94.639% (+0.004%) from 94.635%
35408781192

push

github

web-flow
fix: flush the cache by generation, not by deleting option rows (#52)

ApiCache::flush() ran a DELETE against wp_options matching
_transient_concordance_%. That works only for as long as transients live
in the database. With a persistent object cache set_transient() writes to
the cache instead, no rows match, and the flush cleared nothing while
reporting success -- it returned 0, which reads exactly like an
already-empty cache. Memcached is being turned on, so this was about to
start lying.

Every key now carries a generation held in one option, and flushing
increments it. Existing entries become unreachable at once and expire on
their own TTL. That behaves identically with or without an object cache,
which the DELETE never did, and it drops a raw query that needed a
phpcs:ignore for two separate sniffs.

Enumerating the keys to delete them one by one was never an option: they
are md5 hashes of query arguments, which is why the DELETE existed.

flush() therefore returns bool rather than a count, because nothing is
enumerated any more. The admin notice becomes "Cache flushed." and the
CLI "Cache flushed.", losing a number that counted deleted database rows
rather than cached entries -- and that was always zero on any site with
an object cache. A stale redirect carrying a digit renders no notice.

Deliberately not built on Unity's Cache or CacheBumper: Concordance is
standalone, with its own container and no Unity dependency, and this
keeps it that way.

19 of 19 new or added lines in 3 files covered. (100.0%)

1218 of 1287 relevant lines covered (94.64%)

7.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35408781192.1 19 Sep 2026 12:19AM UTC 14
94.64
GitHub Action Run
Source Files on build 35408781192
  • Tree
  • List 14
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35408781192
  • 42890d76 on github
  • Prev Build on main (#34392129075)
  • Next Build on main (#35540030952)
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