aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Cache
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-01-19 23:30:34 +0100
committerCarl Schwan <carl@carlschwan.eu>2022-04-04 10:28:26 +0200
commit7d272c54d013538746d6731097ec37f360effb5d (patch)
treed754c4184926ea8011bd2b0fe276adebaf4082f6 /lib/private/Cache
parentcf4c77e064fd52d891bc842d78431cceb2f34952 (diff)
downloadnextcloud-server-7d272c54d013538746d6731097ec37f360effb5d.tar.gz
nextcloud-server-7d272c54d013538746d6731097ec37f360effb5d.zip
Add a built-in profiler inside Nextcloud
The webui is provided by a seperate application named profiler Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/private/Cache')
-rw-r--r--lib/private/Cache/CappedMemoryCache.php4
-rw-r--r--lib/private/Cache/File.php4
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/Cache/CappedMemoryCache.php b/lib/private/Cache/CappedMemoryCache.php
index 9260bf1f6b3..0a3300435eb 100644
--- a/lib/private/Cache/CappedMemoryCache.php
+++ b/lib/private/Cache/CappedMemoryCache.php
@@ -115,4 +115,8 @@ class CappedMemoryCache implements ICache, \ArrayAccess {
$this->remove($key);
}
}
+
+ public static function isAvailable(): bool {
+ return true;
+ }
}
diff --git a/lib/private/Cache/File.php b/lib/private/Cache/File.php
index 0ecd894d2d2..a96a7cd9c0b 100644
--- a/lib/private/Cache/File.php
+++ b/lib/private/Cache/File.php
@@ -203,4 +203,8 @@ class File implements ICache {
}
}
}
+
+ public static function isAvailable(): bool {
+ return true;
+ }
}