Add Cache debug information when available in the source code.

Created on 19 June 2024, 7 months ago
Updated 29 June 2024, 7 months ago

Problem/Motivation

Visual Debugger is already delivering an engine offering frontend developers the comfort of seeing relevant template information. But information about cache hits, cache tags, cache contexts etc. was missing up to the moment. This ticket should deliver that additional information when cache debug output is activated.

Proposed resolution

When the script identifies cache information is being pumped to the source code, it will activate some additional debug blocks for each of the selected elements on the page:

  • Cach Hit
  • Cache Tags
  • Cache Contexts
  • Cache Keys
  • Cache Max-Age
  • Pre-Bubbling Cache Tags
  • Pre-Bubbling Cache Contexts
  • Pre-Bubbling Cache Keys
  • Pre-Bubbling Cache Max-Age
  • Rendering Time

Remaining tasks

These are the tasks being delivered via this issue queue:

  • Set a mechanism to identify when cache information is being pumped to the page; hide fields associated with cache debugging when it is not available (this prevents a bloated interface when cache debug is deactivated).
  • Set cache debug blocks associated with each of the new fields listed previously
  • Improve the mechanism delivering the cache and pre-bubbling cache debug information. Currently, each information block is hardcoded into the source code, and it would be better to establish a loop over a configuration array to render all those fields (thus avoiding a bloated source code, and improving code maintainability).
  • Update README.md documentation accordingly.

User interface changes

New blocks are displayed within the Selected tab block when cache debugging is activated.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇷Brazil mabho Rio de Janeiro, RJ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024