Skip to content

Improve static cache purge diagnostics#194

Merged
timkelty merged 6 commits into
3.xfrom
timkelty/log-failed-static-cache-purges
Jul 24, 2026
Merged

Improve static cache purge diagnostics#194
timkelty merged 6 commits into
3.xfrom
timkelty/log-failed-static-cache-purges

Conversation

@timkelty

Copy link
Copy Markdown
Contributor

Adds request context and the collected tags/fetch URLs to purge failure logs, while serializing cache tags with both normalized and original values. This should make customer-specific rate-limit failures traceable to the request and purge inputs.

Copilot AI review requested due to automatic review settings July 24, 2026 12:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves static cache purge diagnostics by enriching Cloud module log contexts with request metadata and by making cache tags serialize both their normalized and original values for clearer troubleshooting.

Changes:

  • Add request context (requestedRoute, requestedParams, url) automatically to Module::log() messages.
  • Include collected purge inputs (tags, fetchUrls) in the “Failed to purge tags after request” error log.
  • Update StaticCacheTag JSON serialization to return structured data (value, originalValue) and add unit tests covering the new behaviors.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/unit/StaticCacheTagTest.php Adds coverage for StaticCacheTag’s structured JSON serialization.
tests/unit/ModuleTest.php Adds coverage for Module::log() request-context enrichment.
src/StaticCacheTag.php Changes jsonSerialize() to return an array including normalized and original values.
src/StaticCache.php Adds purge failure log context for tags and fetch URLs.
src/Module.php Enriches log context with request route/params and absolute URL (web-only).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/unit/ModuleTest.php
Copilot AI review requested due to automatic review settings July 24, 2026 12:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Comment thread src/Module.php
Comment thread tests/unit/ModuleTest.php
Comment thread src/StaticCache.php
Copilot AI review requested due to automatic review settings July 24, 2026 12:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 24, 2026 13:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Comment thread tests/_bootstrap.php Outdated
Copilot AI review requested due to automatic review settings July 24, 2026 13:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

@timkelty
timkelty marked this pull request as ready for review July 24, 2026 13:25

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 597a134f85

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/Module.php
Copilot AI review requested due to automatic review settings July 24, 2026 13:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

@timkelty
timkelty merged commit 8e00847 into 3.x Jul 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants