Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added cache reset for ExApp events listeners #264

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 21 additions & 19 deletions lib/Service/ExAppService.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,26 @@ class ExAppService {
private ICache $cache;

public function __construct(
private readonly LoggerInterface $logger,
ICacheFactory $cacheFactory,
private readonly IUserManager $userManager,
private readonly ExAppFetcher $exAppFetcher,
private readonly ExAppArchiveFetcher $exAppArchiveFetcher,
private readonly ExAppMapper $exAppMapper,
private readonly ExAppUsersService $exAppUsersService,
private readonly ExAppScopesService $exAppScopesService,
private readonly ExAppApiScopeService $exAppApiScopeService,
private readonly TopMenuService $topMenuService,
private readonly InitialStateService $initialStateService,
private readonly ScriptsService $scriptsService,
private readonly StylesService $stylesService,
private readonly FilesActionsMenuService $filesActionsMenuService,
private readonly SpeechToTextService $speechToTextService,
private readonly TextProcessingService $textProcessingService,
private readonly TranslationService $translationService,
private readonly TalkBotsService $talkBotsService,
private readonly SettingsService $settingsService,
private readonly LoggerInterface $logger,
ICacheFactory $cacheFactory,
private readonly IUserManager $userManager,
private readonly ExAppFetcher $exAppFetcher,
private readonly ExAppArchiveFetcher $exAppArchiveFetcher,
private readonly ExAppMapper $exAppMapper,
private readonly ExAppUsersService $exAppUsersService,
private readonly ExAppScopesService $exAppScopesService,
private readonly ExAppApiScopeService $exAppApiScopeService,
private readonly TopMenuService $topMenuService,
private readonly InitialStateService $initialStateService,
private readonly ScriptsService $scriptsService,
private readonly StylesService $stylesService,
private readonly FilesActionsMenuService $filesActionsMenuService,
private readonly SpeechToTextService $speechToTextService,
private readonly TextProcessingService $textProcessingService,
private readonly TranslationService $translationService,
private readonly TalkBotsService $talkBotsService,
private readonly SettingsService $settingsService,
private readonly ExAppEventsListenerService $appEventsListenerService,
) {
$this->cache = $cacheFactory->createDistributed(Application::APP_ID . '/service');
}
Expand Down Expand Up @@ -238,6 +239,7 @@ private function resetCaches(): void {
$this->speechToTextService->resetCacheEnabled();
$this->translationService->resetCacheEnabled();
$this->settingsService->resetCacheEnabled();
$this->appEventsListenerService->resetCacheEnabled();
}

public function getAppInfo(string $appId, ?string $infoXml, ?string $jsonInfo): array {
Expand Down
Loading