kopia lustrzana https://github.com/nextcloud/social
almost looking for missing remote actors in cache
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/82/head
rodzic
7983a44b06
commit
1bc3373b8f
|
@ -105,6 +105,9 @@ class CacheRefresh extends Base {
|
||||||
$result = $this->actorService->manageCacheLocalActors();
|
$result = $this->actorService->manageCacheLocalActors();
|
||||||
$output->writeLn($result . ' local accounts regenerated');
|
$output->writeLn($result . ' local accounts regenerated');
|
||||||
|
|
||||||
|
$result = $this->personService->missingCacheRemoteActors();
|
||||||
|
$output->writeLn($result . ' remote accounts created');
|
||||||
|
|
||||||
$result = $this->personService->manageCacheRemoteActors();
|
$result = $this->personService->manageCacheRemoteActors();
|
||||||
$output->writeLn($result . ' remote accounts updated');
|
$output->writeLn($result . ' remote accounts updated');
|
||||||
|
|
||||||
|
|
|
@ -260,6 +260,25 @@ class PersonService implements ICoreService {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @throws Exception
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
public function missingCacheRemoteActors(): int {
|
||||||
|
// TODO - looking for missing cache remote actors...
|
||||||
|
$missing = [];
|
||||||
|
|
||||||
|
foreach ($missing as $item) {
|
||||||
|
try {
|
||||||
|
$this->getFromId($item->getId());
|
||||||
|
} catch (Exception $e) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return sizeof($missing);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
* @return int
|
* @return int
|
||||||
|
|
Ładowanie…
Reference in New Issue