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

Cache not invalidated after (un)publishing content #245

Open
vntw opened this issue May 5, 2023 · 0 comments
Open

Cache not invalidated after (un)publishing content #245

vntw opened this issue May 5, 2023 · 0 comments
Labels
Bug Error or unexpected behavior of already existing functionality

Comments

@vntw
Copy link

vntw commented May 5, 2023

Hey there,

thanks for the bundle, it saves quite some time building custom content when the article bundle can't be used!

It seems like the content bundle doesn't take care of invalidating the HTTP cache when (un)publishing a content item. I assume this should be the case since it is for pages (using the \Sulu\Bundle\HttpCacheBundle\EventSubscriber\InvalidationSubscriber triggered by the \Sulu\Component\DocumentManager\DocumentManager). The article bundle also uses the DocumentManager so it should work there as well.

Is this sth. that should be done in a workflow subscriber in this bundle?

Steps

Reproduction: https://github.com/vntw/sulu-reproduction/tree/repro

This uses the sulu-skeleton (2.5 branch) with the example test application from the content-bundle.

  1. Create example content
  2. Open example content page once to propagate var/cache/common/prod/http_cache/
  3. find var/cache/common/prod/http_cache/ -type f
  4. Change example content and re-publish
  5. find var/cache/common/prod/http_cache/ -type f
  6. HTTP Cache is unchanged since no invalidation takes place, old data is displayed until you manually clear all website cache or (I assume) the configured cacheLifetime has passed
@alexander-schranz alexander-schranz added the Bug Error or unexpected behavior of already existing functionality label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Error or unexpected behavior of already existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants