I've just launched my new site here and I'm playing around with the caching options with Craft. I'm hosting my site with Siteground which gives me access to their Supercacher option, it offers Static cache and Memcached, both of which I have enabled.

I have configured Craft to use Memcached via the general.php config file 'cacheMethod' => 'memcache' and placed the memcache.php file into the config directory as well with 'useMemcached' => true, set to true and my host to 'host' =>, plus the correct port that is provided by my host. I've also got Cloudflare CDN running which is taking care of a lot of the heavy lifting.

I've also wrapped {% cache %} tags around the mainly static content.

However I'm still left feeling slightly uneasy about my TTFB and site performance, so I have some questions:

  1. Should the IP address for 'host' in memcache.php be wrapped with quotes? I saw "localhost" was in the default file but typically IP addresses are not, so I didn't
  2. My TTFB has been wildly inconsistent, ranging anywhere between 200ms up to 2s. What is the best way to troubleshoot such an issue with Craft? Or is this more of a host issue?
  3. I'm using AJAX page transitions based off this article: https://designbycosmic.com/journal/craft-cms-ajax-page-transitions-with-history-pushstate - could this be messing things up?

I appreciate any feedback or pointers people may offer because I'm feeling a little lost/overwhelmed at the moment. cheers!


1 Answer 1


This isn't an issue with Craft, from the POV that the TTFB should be pretty consistent. How are you testing it?

My guess would be that the issue is with your hosting. These two articles may help you:

The Craft {% cache %} Tag In-Depth

A Pretty Website Isn't Enough

Run some of the diagnostic tests listed in the second article.

  • Holy smokes those two articles are great!
    – rjdvsk
    Commented Jan 4, 2017 at 11:09
  • I've been testing through webpagetest - see a result here: webpagetest.org/result/170104_1A_8DJV As well as Google Insights and Pingdom. All of which were giving me back a high TTFB. Though Cloudflare says to stop worrying about TTFB: blog.cloudflare.com/… - though I suspect a 1.596s TTFB would still be considered high.
    – rjdvsk
    Commented Jan 4, 2017 at 11:16
  • Marking this as the answer. The two articles linked gave me a greater understanding of whats going on behind the scenes and lead me to test the server with just a static file - TTFB was still high - time to find a different host.
    – rjdvsk
    Commented Jan 4, 2017 at 14:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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