mirror of
https://github.com/nextcloud/server.git
synced 2026-06-29 21:27:15 -04:00
fix(TaskProcessing\Manager): Always use distributed cache and use PHP serialize
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
094ea5c885
commit
be1759fcdc
1 changed files with 1 additions and 3 deletions
|
|
@ -81,7 +81,6 @@ class Manager implements IManager {
|
|||
private IAppData $appData;
|
||||
private ?array $preferences = null;
|
||||
private ?array $providersById = null;
|
||||
private ICache $cache;
|
||||
private ICache $distributedCache;
|
||||
|
||||
public function __construct(
|
||||
|
|
@ -101,7 +100,6 @@ class Manager implements IManager {
|
|||
ICacheFactory $cacheFactory,
|
||||
) {
|
||||
$this->appData = $appDataFactory->get('core');
|
||||
$this->cache = $cacheFactory->createLocal('task_processing::');
|
||||
$this->distributedCache = $cacheFactory->createDistributed('task_processing::');
|
||||
}
|
||||
|
||||
|
|
@ -775,7 +773,7 @@ class Manager implements IManager {
|
|||
}
|
||||
|
||||
$this->availableTaskTypes = $availableTaskTypes;
|
||||
$this->cache->set('available_task_types', $this->availableTaskTypes, 60);
|
||||
$this->distributedCache->set('available_task_types_v2', serialize($this->availableTaskTypes), 60);
|
||||
}
|
||||
|
||||
return $this->availableTaskTypes;
|
||||
|
|
|
|||
Loading…
Reference in a new issue