Skip to content

Fix RetrievedFromCache always showing False#536

Merged
erikdarlingdata merged 1 commit into
devfrom
fix/retrieved-from-cache
Mar 12, 2026
Merged

Fix RetrievedFromCache always showing False#536
erikdarlingdata merged 1 commit into
devfrom
fix/retrieved-from-cache

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

  • Ports the fix from PerformanceStudio#89 (reported as PerformanceStudio#88)
  • RetrievedFromCache is an attribute on <StmtSimple>, but the parser was reading it from the child <QueryPlan> element where it never exists — always defaulting to False
  • Fixed in both Dashboard and Lite copies of ShowPlanParser.cs

Test plan

  • Manual: open a cached plan in Dashboard/Lite and confirm "Retrieved From Cache" shows True

🤖 Generated with Claude Code

RetrievedFromCache is an attribute on the StmtSimple XML element,
but the parser was reading it from the child QueryPlan element
where it never exists. Changed to read from stmtEl instead of
queryPlanEl in both Dashboard and Lite copies.

Ported from PerformanceStudio#88 / PerformanceStudio#89.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit bbe1c63 into dev Mar 12, 2026
3 checks passed
@erikdarlingdata erikdarlingdata deleted the fix/retrieved-from-cache branch April 10, 2026 19:01
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.

1 participant