Website Running Slow? Do Some Caching First!
Is your shiny new site running too slow? Don't just throw hardware at it, do some caching first. We have a set of tools that you can use to make your site speedy even with all of it's features. Here's a general diagram:
To explain them a bit, here's a short summary of each and a link to learn more:
- Varnish - Caches your page so you don't even hit the webserver: https://www.varnish-cache.org/
- Nginx - An event driven webserver, rather than apache's process driven webserver: http://wiki.nginx.org/Main
- PHP-FPM - A FastCGI PHP process manager: http://php-fpm.org/
- PHP APC - An opcode cache to precompile your PHP: http://www.php.net/manual/en/intro.apc.php
- Application Cache - Drupal maintain's it's own cache in the database normally, you can move that to a server to increase speed.
If your site is still running slow, you can try running a page speed analyzer (https://developers.google.com/speed/pagespeed/insights), add a page speed optimizer to your webserver (https://github.com/pagespeed/ngx_pagespeed), or use a CDN:
If your site uses a lot of videos, images, etc, you can move those off your server to lower the stress on it (http://aws.amazon.com/s3/). If it's still too slow, you probably need to work with your developer to make it more efficient.