]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Cache/ProfilerCache.php
Merge pull request #10446 from MrPetovan/bug/10439-addon-settings-forms
[friendica.git] / src / Core / Cache / ProfilerCache.php
index 1f77db67acb07695f631e17d9ace4e5231b38511..41d9a29758aa413e70eb216b495ae12c8f118330 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -56,7 +56,7 @@ class ProfilerCache implements ICache, IMemoryCache
 
                $return = $this->cache->getAllKeys($prefix);
 
-               $this->profiler->saveTimestamp($time, 'cache', System::callstack());
+               $this->profiler->saveTimestamp($time, 'cache');
 
                return $return;
        }
@@ -70,7 +70,7 @@ class ProfilerCache implements ICache, IMemoryCache
 
                $return = $this->cache->get($key);
 
-               $this->profiler->saveTimestamp($time, 'cache', System::callstack());
+               $this->profiler->saveTimestamp($time, 'cache');
 
                return $return;
        }
@@ -84,7 +84,7 @@ class ProfilerCache implements ICache, IMemoryCache
 
                $return = $this->cache->set($key, $value, $ttl);
 
-               $this->profiler->saveTimestamp($time, 'cache', System::callstack());
+               $this->profiler->saveTimestamp($time, 'cache');
 
                return $return;
        }
@@ -98,7 +98,7 @@ class ProfilerCache implements ICache, IMemoryCache
 
                $return = $this->cache->delete($key);
 
-               $this->profiler->saveTimestamp($time, 'cache', System::callstack());
+               $this->profiler->saveTimestamp($time, 'cache');
 
                return $return;
        }
@@ -112,7 +112,7 @@ class ProfilerCache implements ICache, IMemoryCache
 
                $return = $this->cache->clear($outdated);
 
-               $this->profiler->saveTimestamp($time, 'cache', System::callstack());
+               $this->profiler->saveTimestamp($time, 'cache');
 
                return $return;
        }
@@ -127,7 +127,7 @@ class ProfilerCache implements ICache, IMemoryCache
 
                        $return = $this->cache->add($key, $value, $ttl);
 
-                       $this->profiler->saveTimestamp($time, 'cache', System::callstack());
+                       $this->profiler->saveTimestamp($time, 'cache');
 
                        return $return;
                } else {
@@ -145,7 +145,7 @@ class ProfilerCache implements ICache, IMemoryCache
 
                        $return = $this->cache->compareSet($key, $oldValue, $newValue, $ttl);
 
-                       $this->profiler->saveTimestamp($time, 'cache', System::callstack());
+                       $this->profiler->saveTimestamp($time, 'cache');
 
                        return $return;
                } else {
@@ -163,7 +163,7 @@ class ProfilerCache implements ICache, IMemoryCache
 
                        $return = $this->cache->compareDelete($key, $value);
 
-                       $this->profiler->saveTimestamp($time, 'cache', System::callstack());
+                       $this->profiler->saveTimestamp($time, 'cache');
 
                        return $return;
                } else {