Skip to content

Commit

Permalink
faster backtrace
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Aug 10, 2023
1 parent a15a771 commit 2e8904d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/Proxy/CacheProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2e8904d

Please sign in to comment.