Skip to content

Commit

Permalink
Show child cache entries in page cache overview page
Browse files Browse the repository at this point in the history
  • Loading branch information
hugithordarson committed Oct 3, 2024
1 parent db841eb commit 562fb5e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions ng-control/src/main/java/ng/control/NGOverview.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
public class NGOverview extends NGComponent {

public NGPageCacheEntry currentCacheEntry;
public NGPageCacheEntry currentChildEntry;
public NGSession currentSession;
public Object currentPropertyKey;

Expand Down
14 changes: 13 additions & 1 deletion ng-control/src/main/resources/components/NGOverview.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,32 @@
<h2>Page cache</h2>
<table>
<tr>
<th></th>
<th>contextID</th>
<th>Page</th>
<th>originatingContextID</th>
<th>updateContainerID</th>
<th>Children</th>
</tr>
<wo:repetition list="$session.pageCache.cacheMap.sequencedValues" item="$currentCacheEntry">
<wo:repetition list="$session.pageCache.cacheMap.sequencedValues.reversed" item="$currentCacheEntry">
<tr>
<td></td>
<td><wo:str value="$currentCacheEntry.contextID" /></td>
<td><wo:str value="$currentCacheEntry.page.name" /></td>
<td><wo:str value="$currentCacheEntry.originatingContextID" /></td>
<td><wo:str value="$currentCacheEntry.updateContainerID" /></td>
<td><wo:str value="$currentCacheEntry.children.size" /></td>
</tr>
<wo:repetition list="$currentCacheEntry.children.sequencedValues.reversed" item="$currentChildEntry">
<tr>
<td> - </td>
<td><wo:str value="$currentChildEntry.contextID" /></td>
<td><wo:str value="$currentChildEntry.page.name" /></td>
<td><wo:str value="$currentChildEntry.originatingContextID" /></td>
<td><wo:str value="$currentChildEntry.updateContainerID" /></td>
<td><wo:str value="$currentChildEntry.children.size" /></td>
</tr>
</wo:repetition>
</wo:repetition>
</table>

Expand Down

0 comments on commit 562fb5e

Please sign in to comment.