Skip to content

Commit

Permalink
Added clearing of Cookies API Etag cache on events `Cookie\CookieEnvi…
Browse files Browse the repository at this point in the history
…ronmentsChanged`, `Project\ProjectEnvironmentsChanged` and `GlobalSettings\EnvironmentsChanged`
  • Loading branch information
tg666 committed Oct 4, 2023
1 parent f44c111 commit 8c54c21
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use App\Domain\Cookie\Event\CookieActiveStateChanged;
use App\Domain\Cookie\Event\CookieCategoryChanged;
use App\Domain\Cookie\Event\CookieCreated;
use App\Domain\Cookie\Event\CookieEnvironmentsChanged;
use App\Domain\Cookie\Event\CookieNameChanged;
use App\Domain\Cookie\Event\CookieProcessingTimeChanged;
use App\Domain\Cookie\Event\CookiePurposeChanged;
Expand All @@ -24,10 +25,12 @@
use App\Domain\CookieProvider\Event\CookieProviderPurposeChanged;
use App\Domain\CookieProvider\Event\CookieProviderTypeChanged;
use App\Domain\GlobalSettings\Event\ApiCacheSettingsChanged;
use App\Domain\GlobalSettings\Event\EnvironmentsChanged;
use App\Domain\Project\Event\ProjectActiveStateChanged;
use App\Domain\Project\Event\ProjectCodeChanged;
use App\Domain\Project\Event\ProjectCookieProviderAdded;
use App\Domain\Project\Event\ProjectCookieProviderRemoved;
use App\Domain\Project\Event\ProjectEnvironmentsChanged;
use App\Domain\Project\Event\ProjectLocalesChanged;
use App\Domain\Project\Event\ProjectTemplateChanged;
use App\Domain\Project\Project;
Expand All @@ -50,6 +53,7 @@ public static function getHandledMessages(): iterable
yield CookieNameChanged::class;
yield CookieProcessingTimeChanged::class;
yield CookiePurposeChanged::class;
yield CookieEnvironmentsChanged::class;

# cookie provider updates
yield CookieProviderActiveStateChanged::class;
Expand All @@ -71,9 +75,11 @@ public static function getHandledMessages(): iterable
yield ProjectCookieProviderRemoved::class;
yield ProjectLocalesChanged::class;
yield ProjectTemplateChanged::class;
yield ProjectEnvironmentsChanged::class;

# global settings changes
yield ApiCacheSettingsChanged::class;
yield EnvironmentsChanged::class;

# deletes
yield AggregateDeleted::class => [
Expand Down

0 comments on commit 8c54c21

Please sign in to comment.