Problem with image caching on uwsgi/nginx
Hi everyone,
here is the situation:
I’ve been deploying my project, collected static files incl images using collectstatic, copied them to the folder I configured nginx with: /opt/project_name/static.
Now, I launch uwsgi, open site and find out it points img to cached file: mysite.com/media/cache/65/8d/658d063b497b2bd1ea6bf135896566c8.jpg
Of course, nginx can’t serve it since there are only collected images at /media - which points to /opt/project_name/static.
I’ve also tried cache.clear() from shell and ./manage.py thumbnail clear with no effect.
So, there are two questions I’m asking your help about:
how to set satchmo store cached files to /opt/project_name/static/ where nginx points to ?
How to reset cached data so that satchmo regenerated cached images ?
Thank you upfront,
Andrey