mirror of
https://github.com/friendica/friendica
synced 2025-05-01 05:44:24 +02:00
API: Speed improvements when fetching posts
This commit is contained in:
parent
86837ddb4a
commit
7e747b2f41
9 changed files with 140 additions and 104 deletions
|
@ -98,7 +98,7 @@ class Page implements ArrayAccess
|
|||
$this->method = $method;
|
||||
}
|
||||
|
||||
public function logRuntime(IManageConfigValues $config)
|
||||
public function logRuntime(IManageConfigValues $config, string $origin = '')
|
||||
{
|
||||
if (in_array($this->command, $config->get('system', 'runtime_ignore'))) {
|
||||
return;
|
||||
|
@ -106,7 +106,7 @@ class Page implements ArrayAccess
|
|||
|
||||
$runtime = number_format(microtime(true) - $this->timestamp, 3);
|
||||
if ($runtime > $config->get('system', 'runtime_loglimit')) {
|
||||
Logger::debug('Runtime', ['method' => $this->method, 'command' => $this->command, 'runtime' => $runtime]);
|
||||
Logger::debug('Runtime', ['method' => $this->method, 'command' => $this->command, 'runtime' => $runtime, 'origin' => $origin]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue