Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Image cache wont update/clear when image updated with same name #98

Open
yelnyafacee opened this issue Nov 12, 2018 · 3 comments
Open

Comments

@yelnyafacee
Copy link

When I updated an existing image ( for example : bacon-broccoli-egg-bites2.png ) with a new image file with same name (bacon-broccoli-egg-bites2.png), the cached image manipulation http://localhost/testsite/public/image/300/300/c/images/food/2/bacon-broccoli-egg-bites2.png ) wont update most of the time, when I visit the above URL, I get the old image, how do I fix this?

@yelnyafacee
Copy link
Author

I am using file as cache driver

@catalin87
Copy link

Same problem here, I have an image with routed cache enabled.
Later I rotate the image, but cache will not update.
How I can reset/regenerate cache for the specified image?

@rush4u
Copy link

rush4u commented Jan 29, 2020

I have read some insights about this issue, heres what i did

`$imageCacheTemplates = collect(config("imagecache.templates"));

        foreach ($imageCacheTemplates as $key => $template) {
            $image = $imageCache->make(storage_path("app")."/". config("quepisos.uploadsDir").$result)->filter(new $template);
            Cache::forget($image->checksum());
        }`

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

No branches or pull requests

3 participants