|
I have OSQA up and running with the file cache backend enabled, and it’s a little sluggish in places. I’d like to use the memcached caching backend, but I have been unable to find any instructions on how to configure this in OSQA. What should |
|
First thing is having memcached up and running. Then you need to install the pyhton memcached bindings, like python-memcached. Then set the CACHE_BACKEND like this:
where server address is usually localhost or 127.0.0.1, and the port 11211. But it can be anything else. Restart and enjoy :) 2
how much faster does it run? Anyone looked into the code to see what is being cached?
(04 Oct '10, 13:55)
Valentino Lee
1
For me the slowest part of the SQL involved forum_node_tags table. Now they are gone to memcached. Page load times are now < 1 sec with 200K+ questions a decrease from ~30sec for a page.
(07 Sep '11, 06:38)
kerem
1
Awesome. My site is super fast now with everything loads in under a sec. This is way better than the default caching. Installing memcached was easy as well.
(12 Oct '11, 16:03)
Greenbrick
The next major low hanging fruit are template loader caching and connection pooling. See:
(23 Mar, 19:17)
Danny Thomas
|