Skip to content

Commit

Permalink
Remove cache invalidation, snippet-bundle already does it
Browse files Browse the repository at this point in the history
  • Loading branch information
Prokyonn committed Jun 19, 2024
1 parent ae269fb commit 93cbd6c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 77 deletions.
64 changes: 0 additions & 64 deletions EventSubscriber/SnippetAreaInvalidationSubscriber.php

This file was deleted.

2 changes: 1 addition & 1 deletion Resources/config/controllers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<argument type="service" id="sulu.content.mapper"/>
<argument type="service" id="sulu_headless.structure_resolver"/>
<argument type="service" id="jms_serializer.serializer"/>
<argument type="service" id="sulu_headless.reference_store.snippet_area"/>
<argument type="service" id="sulu_snippet.reference_store.snippet_area"/>
<argument>%sulu_http_cache.cache.max_age%</argument>
<argument>%sulu_http_cache.cache.shared_max_age%</argument>
<argument>%sulu_headless.snippet_area.cache_lifetime%</argument>
Expand Down
6 changes: 0 additions & 6 deletions Resources/config/event-subscribers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,5 @@
<tag name="sulu_document_manager.event_subscriber"/>
<tag name="kernel.reset" method="reset"/>
</service>

<service id="sulu_headless.event_subscriber.snippet_area_invalidation" class="Sulu\Bundle\HeadlessBundle\EventSubscriber\SnippetAreaInvalidationSubscriber">
<argument type="service" id="sulu_http_cache.cache_manager" on-invalid="null"/>

<tag name="kernel.event_subscriber" />
</service>
</services>
</container>
6 changes: 0 additions & 6 deletions Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,5 @@
<tag name="sulu_website.reference_store" alias="navigation"/>
<tag name="kernel.reset" method="reset"/>
</service>

<service id="sulu_headless.reference_store.snippet_area"
class="Sulu\Bundle\WebsiteBundle\ReferenceStore\ReferenceStore">
<tag name="sulu_website.reference_store" alias="snippet_area"/>
<tag name="kernel.reset" method="reset"/>
</service>
</services>
</container>

0 comments on commit 93cbd6c

Please sign in to comment.