From 2e8904d6ae7111a2a18fe3ce74167c173a09306c Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 10 Aug 2023 16:46:03 +0200 Subject: [PATCH] faster backtrace --- code/Proxy/CacheProxy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Proxy/CacheProxy.php b/code/Proxy/CacheProxy.php index 77ac7c7..018f6b7 100644 --- a/code/Proxy/CacheProxy.php +++ b/code/Proxy/CacheProxy.php @@ -34,7 +34,7 @@ public function get($key, $default = null): mixed private function getCaller(): string { - $trace = debug_backtrace(); + $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 3); $caller = ""; $ignore = ["set", "get", "setCacheValue", "getCacheValue", "getCaller"]; foreach ($trace as $t) {