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

Cannot clear webP cache #1504

Open
phtmgt opened this issue Feb 23, 2023 · 4 comments
Open

Cannot clear webP cache #1504

phtmgt opened this issue Feb 23, 2023 · 4 comments

Comments

@phtmgt
Copy link

phtmgt commented Feb 23, 2023

Steps to reproduce

  1. Change filter settings
  2. Clear cache for a filter
  3. Open newly generated image

Expected result

  1. See updated filter result for both regular (jpg/png) file and webP file.

Actual result

  1. Regular files get proper changes (cache actually gets cleared), while webP version is old filter version (w/out changes)
@tekodragoon
Copy link

I have issue with webp file too.
In a image gallery manager i wrote, when i delete an image from the gallery, i want the cache be removed too.
I use cacheManager to do it, but it only removed the image with the base extension and leave the webp file.

@kamilwyremski
Copy link

I have this same issue. Any chance that this will be fixed?

PastisD pushed a commit to Vigicorp/LiipImagineBundle that referenced this issue Oct 3, 2023
@damienalexandre
Copy link

Same issue. Calling \Liip\ImagineBundle\Imagine\Cache\CacheManager::remove will not remove the WebP image when using this configuration:

liip_imagine:
    webp:
        generate: true

I wonder if Vigicorp@835875f is the proper way to handle this.

@damienalexandre
Copy link

An update on this issue, you can call \Liip\ImagineBundle\Service\FilterService::bustCache to remove both the JPEG and the WebP for a known image and filter:

$imagineFilterService->bustCache('999/banner.jpg', 'profile_banner');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants