Clear image source cache on startup to fix a race condition
@@ -10,6 +10,7 @@ https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
import os
from django.core.wsgi import get_wsgi_application
+from django.core.cache import cache
from wsgi_basic_auth import BasicAuth
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cccatalog.settings")
@@ -18,3 +19,4 @@ from gevent import monkey
monkey.patch_all()
application = get_wsgi_application()
application = BasicAuth(application)
+cache.delete('providers-image')
