Skip to content

Commit cb4dfa2

Browse files
authored
added cache reset for ExApp events listeners (#264)
Signed-off-by: Alexander Piskun <[email protected]>
1 parent 36c2db5 commit cb4dfa2

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

lib/Service/ExAppService.php

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,26 @@ class ExAppService {
3333
private ICache $cache;
3434

3535
public function __construct(
36-
private readonly LoggerInterface $logger,
37-
ICacheFactory $cacheFactory,
38-
private readonly IUserManager $userManager,
39-
private readonly ExAppFetcher $exAppFetcher,
40-
private readonly ExAppArchiveFetcher $exAppArchiveFetcher,
41-
private readonly ExAppMapper $exAppMapper,
42-
private readonly ExAppUsersService $exAppUsersService,
43-
private readonly ExAppScopesService $exAppScopesService,
44-
private readonly ExAppApiScopeService $exAppApiScopeService,
45-
private readonly TopMenuService $topMenuService,
46-
private readonly InitialStateService $initialStateService,
47-
private readonly ScriptsService $scriptsService,
48-
private readonly StylesService $stylesService,
49-
private readonly FilesActionsMenuService $filesActionsMenuService,
50-
private readonly SpeechToTextService $speechToTextService,
51-
private readonly TextProcessingService $textProcessingService,
52-
private readonly TranslationService $translationService,
53-
private readonly TalkBotsService $talkBotsService,
54-
private readonly SettingsService $settingsService,
36+
private readonly LoggerInterface $logger,
37+
ICacheFactory $cacheFactory,
38+
private readonly IUserManager $userManager,
39+
private readonly ExAppFetcher $exAppFetcher,
40+
private readonly ExAppArchiveFetcher $exAppArchiveFetcher,
41+
private readonly ExAppMapper $exAppMapper,
42+
private readonly ExAppUsersService $exAppUsersService,
43+
private readonly ExAppScopesService $exAppScopesService,
44+
private readonly ExAppApiScopeService $exAppApiScopeService,
45+
private readonly TopMenuService $topMenuService,
46+
private readonly InitialStateService $initialStateService,
47+
private readonly ScriptsService $scriptsService,
48+
private readonly StylesService $stylesService,
49+
private readonly FilesActionsMenuService $filesActionsMenuService,
50+
private readonly SpeechToTextService $speechToTextService,
51+
private readonly TextProcessingService $textProcessingService,
52+
private readonly TranslationService $translationService,
53+
private readonly TalkBotsService $talkBotsService,
54+
private readonly SettingsService $settingsService,
55+
private readonly ExAppEventsListenerService $appEventsListenerService,
5556
) {
5657
$this->cache = $cacheFactory->createDistributed(Application::APP_ID . '/service');
5758
}
@@ -238,6 +239,7 @@ private function resetCaches(): void {
238239
$this->speechToTextService->resetCacheEnabled();
239240
$this->translationService->resetCacheEnabled();
240241
$this->settingsService->resetCacheEnabled();
242+
$this->appEventsListenerService->resetCacheEnabled();
241243
}
242244

243245
public function getAppInfo(string $appId, ?string $infoXml, ?string $jsonInfo): array {

0 commit comments

Comments
 (0)