Add traffic_ctl cache clear command - #13418
Merged
Merged
Conversation
Cache resets currently require restarting Traffic Server or manually changing the cache generation. This complicates repeatable workload comparisons and their automation. This adds a traffic_ctl cache clear command backed by a restricted JSON-RPC method that advances the global HTTP cache generation. This also documents the logical purge semantics and exercises the command in the cache-generation AuTest. Fixes: apache#9399
cmcfarlen
approved these changes
Aug 3, 2026
cmcfarlen
pushed a commit
that referenced
this pull request
Aug 10, 2026
Cache resets currently require restarting Traffic Server or manually changing the cache generation. This complicates repeatable workload comparisons and their automation. This adds a traffic_ctl cache clear command backed by a restricted JSON-RPC method that advances the global HTTP cache generation. This also documents the logical purge semantics and exercises the command in the cache-generation AuTest. Fixes: #9399 (cherry picked from commit 2d9d666)
Contributor
|
Cherry-picked to the 10.2.x branch as 0f4a5da for the 10.2.0 release. |
cmcfarlen
added a commit
to cmcfarlen/trafficserver
that referenced
this pull request
Aug 10, 2026
Picks up apache#13328 (shared-memory cache directory for fast restart) and apache#13418 (traffic_ctl cache clear). The shm directory gets its own section since it is a new opt-in feature with four new records and a traffic_ctl subcommand.
cmcfarlen
added a commit
to cmcfarlen/trafficserver
that referenced
this pull request
Aug 10, 2026
Picks up apache#13328 (shared-memory cache directory for fast restart) and apache#13418 (traffic_ctl cache clear). The shm directory gets its own section since it is a new opt-in feature with four new records and a traffic_ctl subcommand.
cmcfarlen
added a commit
that referenced
this pull request
Aug 10, 2026
* Add 10.2.0 changelog and release notes Generate CHANGELOG-10.2.0 from the 10.2.0 milestone and document the release in whats-new and upgrading. The connect retry change (#13102) is called out as a necessary incompatible change, since the retry limits were not previously applied according to origin state. * Address review: fix PR count and token_key markup The PR count was 655 before five stale milestone entries were dropped; the changelog has 650. Use :ts:cv: for proxy.config.quic.server.token_key.filename, which is documented on 10.2.x even though it is absent from master, where it was first checked. * Add late 10.2.x additions to changelog and release notes Picks up #13328 (shared-memory cache directory for fast restart) and #13418 (traffic_ctl cache clear). The shm directory gets its own section since it is a new opt-in feature with four new records and a traffic_ctl subcommand. * Add July 2026 security fixes to changelog and release notes The Release 2 security bundle (#13452) landed directly on 10.2.x without public PRs, so those commits never appear in a milestone. Source them from the commit range with the changelog tool's git-range mode and append them as bare subjects, matching how CHANGELOG-10.1.4 lists them. Link the advisory from whats-new for the CVE mapping. * Add #13352, #13517 and #13523 to the changelog Three late bug fixes on 10.2.x. All are fixes with no new configuration, metrics or API surface, so only the changelog and the commit/PR counts change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cache resets currently require restarting Traffic Server or manually
changing the cache generation. This complicates repeatable workload
comparisons and their automation.
This adds a traffic_ctl cache clear command backed by a restricted
JSON-RPC method that advances the global HTTP cache generation. This
also documents the logical purge semantics and exercises the command in
the cache-generation AuTest.
Fixes: #9399