partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 4bb769e4e0c54994c5499048ee6185d7b9c5ec5c
parent 1ad854dfeb6c8cdee62e60a4c0312178638c6271
Author: Felicitus <felicitus@felicitus.org>
Date:   Tue, 10 Jul 2012 23:50:41 +0200

Display the query and metadata cache implementations in the system view

Diffstat:
Msrc/backend/PartKeepr/System/SystemService.php | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/backend/PartKeepr/System/SystemService.php b/src/backend/PartKeepr/System/SystemService.php @@ -32,7 +32,13 @@ class SystemService extends Service { $aData[] = new SystemInformationRecord("upload_max_filesize", ini_get("upload_max_filesize"), "PHP"); $aData[] = new SystemInformationRecord("allow_url_fopen", ini_get("allow_url_fopen"), "PHP"); $aData[] = new SystemInformationRecord("max_execution_time", ini_get("max_execution_time"), "PHP"); - $aData[] = new SystemInformationRecord("APC enabled", (extension_loaded("apc") ? PartKeepr::i18n("Yes") : PartKeepr::i18n("No")), "PHP"); + + $queryCache = get_class(PartKeepr::getEM()->getConfiguration()->getQueryCacheImpl()); + $metadataCache = get_class(PartKeepr::getEM()->getConfiguration()->getMetadataCacheImpl()); + + $aData[] = new SystemInformationRecord("Query Cache Implementation", $queryCache, "PHP"); + $aData[] = new SystemInformationRecord("Metadata Cache Implementation", $metadataCache, "PHP"); + $aData[] = new SystemInformationRecord("PartKeepr Version", PartKeepr::getVersion(), "PartKeepr");