1👍
If you are getting issues with the Python egg cache, see the mod_wsgi documentation at:
The reason it flicks may be because you are running a multiprocess configuration and so requests can go to different processes. That it would be different though for different processes is a bit odd, but is often explained by import order dependencies in your code where whether it works depends on the order in which URLs are visited.
Quite often such ordering issues don’t show up if using Django and developing with Django developer server, because the Django development server preloads code before requests are handled. I have commented on this specific Django issue in:
Do note that code examples in that corresponded to an old Django version so may not be appropriate to use now.