sulu / SuluHeadlessBundle

Bundle that provides controllers and services for using Sulu as headless content management system
MIT License
45 stars 25 forks source link

Add caching to navigation and snippet controller #112

Closed Prokyonn closed 2 years ago

Prokyonn commented 2 years ago

Add caching and tag invalidation support for NavigationController and SnippetAreaController

Prokyonn commented 2 years ago

Missing a subscriber which invalidates snippet areas.

@alexander-schranz do we really need one?

At the moment it is working, as soon as the snippet is modified, the tag is invalidated through the default InvalidationSubscriber from the HttpCacheBundle

alexander-schranz commented 2 years ago

@Prokyonn but if a default snippet is changed to another default snippet the cache need to be invalided also. Else you will get a long time the old default snippet.