Re: Problem with image caching on uwsgi/nginx

125 views
Skip to first unread message

David Unric

unread,
Jun 12, 2013, 6:32:04 AM6/12/13
to satchm...@googlegroups.com
concerning the 2nd question, there is a known bug in thumbnails handling but also a testing patch at disposal
see
https://bitbucket.org/chris1610/satchmo/issue/1472/thumbnails-cache-does-not-get-updated

On Thursday, April 25, 2013 8:59:10 AM UTC+2, AndrewLvov wrote:

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


Reply all
Reply to author
Forward
0 new messages