High Performance Drupal

Sub-title: 
Fast and Scalable Designs
Publisher: 
O'Reilly Media
Publication date: 
2013-10
Page count: 
264
ISBN-13: 
978-1449392611

How can you help your Drupal website continue to perform at the highest level as it grows to meet demand? This comprehensive guide provides best practices, examples, and in-depth explanations for solving several performance and scalability issues. You’ll learn how to apply coding and infrastructure techniques to Drupal internals, application performance, databases, web servers, and performance analysis.

Covering Drupal versions 7 and 8, this book is the ideal reference for everything from site deployment to implementing specific technologies such as Varnish, memcache, or Solr. If you have a basic understanding of Drupal and the Linux-Apache-MySQL-PHP (LAMP) stack, you’re ready to get started.

  • Establish a performance baseline and define goals for improvement
  • Optimize your website’s code and front-end performance
  • Get best and worst practices for customizing Drupal core functionality
  • Apply infrastructure design techniques to launch or expand a site
  • Use tools to configure, monitor, and optimize MySQL performance
  • Employ alternative storage and backend search options as your site grows
  • Tune your web servers through httpd and PHP configuration
  • Monitor services and perform load tests to catch problems before they become critical

Boost: store the cache in a different directory

By default, boost stores its cache in the "cache" directory located at the root of the website.

A frequent request is to store the cache on a per-site directory under other files generated by the site, in sites/example.org/files/cache/, for example. However, this is likely to cause issues with how the Drupal htaccess rules for multi-site work.

Note that the default way boost stores the cache does support multi-sites. You should not need to change this setting unless you have specific requirements.

If you need to change the location of the cache:

Boost 7.x: Static page caching for your website

Boost is a contributed module that provides static page caching for Drupal websites. It can help you realize a significant performance increase for personal blogs, small business, corporate sites, portals and directories that receive mostly anonymous traffic. For shared hosting this is your best option in terms of improving performance and enhancing your website visitor's experience.

Features

  • Improves website performance for anonymous users.
  • On-Demand page caching.
  • Supports shared, VPS and dedicated hosting.
  • Supports and designed for Apache.
  • Nginx and IIS semi-supported.
  • Supports Multi-site Installations.
  • Supports HTML, XML, CSS, JavaScript, JSON/AJAX.
  • Built-in htaccess file generator if needed.
  • Page cache status/flush block. See: #1448476: Admin status block in 7.x-1.x
  • Gzip page compression. (partial, see: #1416214: Basic gzip support for 7x)
  • Adjustable cache lifetimes.
  • Uses cron run to trigger cleaning of cached files.
  • Choose which pages are cached.
  • Injects HTML comment to provide easy verification of Boost.
  • Easy to install and setup.

Apachesolr Caching

Can be removed - Moved all the available info to http://drupal.org/node/1053068

Linux Memcached daemon, PHP PECL, Drupal Memcache & localized UNIX sockets

This information enhances the documentation for the Drupal Memcache module. The Drupal configuration on this page is for Drupal 6, while the other information below is Drupal version agnostic. For Drupal 7 sites on Ubuntu 12.04 you may want to see this post.

Subscribe with RSS Subscribe to RSS - caching