Using Django Caching with Mod_WSGI <p>Is anyone aware of any issues with Django's caching framework when deployed to Apache/Mod_WSGI?</p> <p>When testing with the caching framework locally with the dev server, using the profiling middleware and either the FileBasedCache or LocMemCache, Django's very fast. My request time goes from ~0.125 sec to ~0.001 sec. Fantastic.</p> <p>I deploy the identical code to a remote machine running Apache/Mod_WSGI and my request time goes from ~0.155 sec (before I deployed the change) to ~.400 sec (post deployment). That's right, caching <strong>slowed everything down</strong>.</p> <p>I've spent hours digging through everything, looking for something I'm missing. I've tried using FileBasedCache with a location on tmpfs, but that also failed to improve performance.</p> <p>I've monitored the remote machine with top, and it shows no other processes and it has 6GB available memory, so basically Django should have full rein. I love Django, but it's incredibly slow, and so far I've never been able to get the caching framework to make any noticeable impact in a production environment. Is there anything I'm missing?</p> <p>EDIT: I've also tried memcached, with the same result. I confirmed memcached was running by telneting into it.</p>