0

In my Drupal 6 site (fairly busy about 200 anonymous users on average at at time) I have the following setup to speed up the site.

  • Caching Mode - normal
  • Optimize JavaScript files
  • Gzip enabled via .htaccess
  • Cloudflare - normal setting
  • Disabled database logging

Can I add memcached or Varnish into this setup? Which one will work better for this site? Should I even care about Varnish and memcached in this setup?

  • Whether Varnish or memcache will be worthwhile or not requires profiling your website. There are other things that should be done before throwing caching at a site to ensure optimal performance. – mpdonadio Jan 3 '17 at 16:14
  • What is a typical response time? What type of hosting do you have? – sbrattla Jan 4 '17 at 21:42
  • Hi the response time is quite good but I want to setup the server so it's at its fastest. Hosting is AWS EC2 server with AWS RDS for mysql dbase.. – user3236765 Jan 4 '17 at 23:59
2

You can use both as per my knowledge.

For Drupal generally, Varnish works for unauthenticated users traffic and memcached will cache authenticated users traffic.

Memcache saves your DB from doing a lot of read work, Varnish saves your dynamic web server from CPU load by making you generate pages less frequently.

But in your case I think Varnish is better option.

  • Use both, but if I had to pick one I'd go for memcache actually. – mikeytown2 Jan 3 '17 at 21:24
  • Hi Mikeytown why do you recommend memcache only? Thanks – user3236765 Jan 4 '17 at 13:03
  • @user3236765 Use both if you can. Memcache can be used for the page cache which varnish only does so there is a slight overlap. – mikeytown2 Jan 4 '17 at 19:24
  • Hi with all the schemes I've enabled as per my original question memcache will work? – user3236765 Jan 10 '17 at 10:58

Not the answer you're looking for? Browse other questions tagged or ask your own question.