Merge pull request #11346 from MrPetovan/bug/11343-memcached-bad-key

Suppress a couple MemcachedException
This commit is contained in:
Michael Vogel
2022-03-16 15:19:40 +01:00
committed by GitHub
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ class APContact
// Detect multiple fast repeating request to the same address
// See https://github.com/friendica/friendica/issues/9303
$cachekey = 'apcontact:getByURL:' . $url;
$cachekey = 'apcontact:' . ItemURI::getIdByURI($url);
$result = DI::cache()->get($cachekey);
if (!is_null($result)) {
Logger::notice('Multiple requests for the address', ['url' => $url, 'update' => $update, 'callstack' => System::callstack(20), 'result' => $result]);