When i delete an image in a folder and upload a new one with the same name it always shows the old one.
Even after a refresh
Statamic version: 3.0.20
PHP version: 7.3
Install method (choose one):
statamic/statamicCould it be cached by your browser, what happens when you empty your browser cache?
Hard refresh, same issue.
But will try again to be sure.
Do you auto generate asset presets? Maybe they currently don't get deleted when you delete an asset. Just thinking out loud here :-). You could try clearing those as well.
It might be worth also clearing your Glide cache after you've deleted an entry to see if that's the cause. php please glide:clear
Yeah that's what I meant. Just confirmed it's the glide cache. So the issue is that when you delete an asset the glide cache for that asset doesn't get's purged.
Thx @robdekort for checking!
This issue has not had recent activity and has been marked as stale — by me, a robot. Simply reply to keep it open and send me away. If you do nothing, I will close it in a week. I have no feelings, so whatever you do is fine by me.
Go away github-actions bot!
Do you have a workaroud or something for this problem ?
You have to clear the Glide cache and possibly your browser cache. You could also manually delete the generated presets for that asset from the glide cache so you keep others.
When you say it shows the old one, are you talking about in the image previews in the Asset browser?
I assume so cuz I noticed it as well. It also happens on the frontend when you use the glide cache.
ok after a hard browser clear and php please glide:clear it worked. But I can't tell my client to use php please glide:clear. could i disable it?
You could disable the glide cache, but that could drastically decrease your sites performance. I'd instruct your client not to upload assets with the same name, for now.
Another thing you could do is give the client access to the caching utilities in the CP. They can clear the glide cache with the press of a button.
Most helpful comment
Go away github-actions bot!