From 45bed8bf32ce49453930c8cba0b9dc2ff7a97ee8 Mon Sep 17 00:00:00 2001 From: Jens Vagelpohl Date: Thu, 26 Oct 2023 12:48:48 +0200 Subject: [PATCH] - Move the cache detail links to the individual database pages. - Fix the auto refresh functionality on the Reference Count page. --- CHANGES.rst | 6 +++++- src/App/ApplicationManager.py | 3 +++ src/App/dtml/dbMain.dtml | 13 ++++++++++++- src/App/dtml/debug.dtml | 33 +++++++++++++-------------------- 4 files changed, 33 insertions(+), 22 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 6749b10b72..0a3cd08e0d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,7 +10,11 @@ https://github.com/zopefoundation/Zope/blob/4.x/CHANGES.rst 5.8.7 (unreleased) ------------------ -- Separate ZODB connection information into new ZODB Connections view +- Separate ZODB connection information into new ZODB Connections view. + +- Move the cache detail links to the individual database pages. + +- Fix the auto refresh functionality on the Reference Count page - Update the Ace editor in the ZMI. diff --git a/src/App/ApplicationManager.py b/src/App/ApplicationManager.py index 4dd73001e5..5ac45a5d52 100644 --- a/src/App/ApplicationManager.py +++ b/src/App/ApplicationManager.py @@ -338,6 +338,9 @@ def _getDB(self): def cache_length(self): return self._getDB().cacheSize() + def cache_active_and_inactive_count(self): + return sum([x['size'] for x in self._getDB().cacheDetailSize()]) + def cache_length_bytes(self): return self._getDB().getCacheSizeBytes() diff --git a/src/App/dtml/dbMain.dtml b/src/App/dtml/dbMain.dtml index 8b480209e7..2fbf311b9b 100644 --- a/src/App/dtml/dbMain.dtml +++ b/src/App/dtml/dbMain.dtml @@ -91,11 +91,22 @@ Total &dtml-cache_length; -   + &dtml-cache_active_and_inactive_count; +

+ + + Cache detail + + + + Cache extreme detail + +

+
-

- - - Cache detail - - - - Cache extreme detail - -

-
- + + - - - - + + +
+ + + +