On Dec 26, 6:44 pm, Dima Dogadaylo <[EMAIL PROTECTED]> wrote: > On Dec 11, 8:37 pm, Richard Coleman <[EMAIL PROTECTED]> > wrote: > > > 1. mod_python > > 2. apache 2.2.4 > > 3. I'm using funkload and ab to measure the requests per second of one > > of the base pages within the dynamic part of the website > > 4. When I hit a static page in the same way (using ab), I get 6500 > > requests per second. > > 5. This is without memcached, or any other caching. > > Apache may cache static pages and serve it from memory, but Django > requests Apache passes to your server without caching. If you want to > achieve speed of static pages for you Django pages, try to use > WebAlchemy:http://www.mysoftparade.com/blog/webalchemy-django-apache/
I suspect that that could have been done somewhat simpler by using other features of Apache mod_rewrite. In other words, one could have avoided the need to rewrite the .htaccess file when files are updated. One could just have used features of mod_rewrite to check for the existence of a static file of appropriate name and internally redirect to that if it existed, otherwise pass through to web application as per normal. So, reasonable approach, not a new one though and not done as well as it could have. :-) Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---