#16967: CachedStaticFilesStorage only populates the file name cache once, never updates -----------------------------+--------------------------------------------- Reporter: mkai | Owner: nobody Type: Bug | Status: new Component: | Version: SVN contrib.staticfiles | Keywords: CachedStaticFilesStorage, cache Severity: Normal | Has patch: 0 Triage Stage: Unreviewed | UI/UX: 0 Easy pickings: 0 | -----------------------------+--------------------------------------------- I noticed that the cache that CachedStaticFilesStorage uses for performance reasons (i. e. to avoid having to recalculate the MD5 hash for a file's contents) is populated only once, during collectstatic. Therefore, if memcached goes down and needs to be restarted, it will need to recalculate the MD5 hash for every subsequent static file request, because the cache query will always miss.
I suggest that if a cache query misses, the corresponding file name in the cache should be updated/ rewritten. -- Ticket URL: <https://code.djangoproject.com/ticket/16967> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.