django-imagekit
django-imagekit copied to clipboard
How to clear the cache?
on my ubuntu VPS, I process thousands of images through django-imagekit.
My code
class Thumbnail(ImageSpec):
processors = [ResizeToFit(1200)]
format = 'WEBP'
options = {'quality': 90}
Main_image = open('path/to/image.jpg','rb')
Preview_gen = Thumbnail(source=Main_image)
Preview = Preview_gen.generate()
but after few hundred processes it stops at:
Preview = Preview_gen.generate()
but after restarting the server it works fine for the next few hundreds
maybe it's related to caching so, how to clear the cache or any other solution
Edit: now it stuck even after a reboot, so I removed that particular image from the process and it worked reset of the image were processing as normal
IDK now, I guess its a problem with that particular image or caching...