You are previewing Drupal 6 Performance Tips.
O'Reilly logo
Drupal 6 Performance Tips

Book Description

Learn how to maximize and optimize your Drupal framework using Drupal 6 best practice performance solutions and tools

  • Monitor the performance of your Drupal website and improve it

  • Configure a Drupal multisite environment for best performance

  • Lot of examples with clear explanations

  • Choose and use the best Drupal modules for improving your site's performance

In Detail

Drupal is one of the most respected and widely used open source content management frameworks. Small, medium, and large-scale websites are built using Drupal and the framework supports ecommerce, CRM, multisite and web service integrations.

Once you get your Drupal site installed and up and running, you will be concerned with site performance and how fast you can make your Drupal site run. This book will focus on implementing performance modules and solutions to help speed up your Drupal website.

We will look at introductory topics such as upgrading your Drupal site, maintaining your site, and enabling core Drupal page compression and caching.

Then we will turn to an advanced look at some contributed modules that help speed up performance, including Development, Boost, Authcache, Advanced Cache, and the Memcache API and Integration module.

Finally, we’ll look at how best to implement a Drupal multisite environment and run it with high-speed performance in mind.

This book is designed for Drupal developers and webmasters who want to increase their Drupal site’s speed and performance. You will take your Drupal site to the next level by not only displaying relevant and newsworthy content, but also running a powerful and high-speed website.

Table of Contents

  1. Drupal 6 Performance Tips
  2. Credits
  3. About the Authors
  4. About the Reviewers
  5. Preface
    1. What this book covers
    2. What you need for this book
    3. Who this book is for
    4. Conventions
    5. Reader feedback
    6. Customer support
    7. Errata
    8. Piracy
    9. Questions
  6. 1. Upgrading Drupal
    1. Upgrading Drupal 5.x core
      1. Backing up your site and database
      2. Taking your site offline
      3. Running Status report
    2. Upgrading to 5.19
      1. Installing the Update Status module
      2. Installing contributed module updates
      3. Uninstalling and removing Update Status
      4. Running cron and checking recent log entries
      5. Dealing with contributed modules during upgrades
    3. Backing up and exporting your Drupal 5.x Views
      1. Reviewing your Panels code
    4. Final prep for upgrading to 6.13
      1. Disabling all contributed modules
      2. Enabling the Garland theme site-wide
    5. Downloading Drupal 6.13
    6. Upgrading Drupal core
      1. Running update.php
      2. Upgrading contributed modules
      3. Updating your PHP memory limit
    7. Installing the updated Zen theme files
      1. Upgrading your custom theme
      2. Cleaning up and resetting Views
      3. Placing your site back online
    8. Summary
  7. 2. Maintaining your Drupal Site
    1. Checking your Drupal configuration status
    2. Checking your PHP and MySQL settings
    3. Files to delete and clean up
    4. Enabling the Update Status module
      1. Disabling unused modules and themes
    5. Introduction to Drupal caching
      1. Enabling and configuring Drupal caching
      2. Cache tables in your MySQL database
      3. Clearing your performance cache
      4. Clearing your theme registry
    6. Running cron manually
      1. Installing the Poormanscron module
      2. Setting up cron through cPanel
    7. Backing up your site using SFTP/FTP and cPanel
      1. Backing up your database through phpMyAdmin
    8. Tweaking your HTACCESS file
    9. Summary
  8. 3. Using Development Modules and Tools
    1. Viewing and inspecting recent log entries
      1. Viewing your recent log entries
      2. Logging and alerts configuration
      3. Page not found and access denied errors
    2. The Devel module
      1. Installing and enabling Devel
      2. Checking Devel module permissions
      3. Enabling Themer info
      4. Devel settings
      5. Inspecting database queries and Devel results
      6. Enabling the Devel module block
      7. Using the Devel module block
        1. Database queries
        2. Empty cache
        3. Disable/Enable Theme developer
        4. Execute PHP code
        5. Function reference
        6. Hook_elements()
        7. PHPinfo()
        8. Rebuild menus
        9. Reinstall modules
        10. Running cron
        11. Session viewer
        12. Theme registry
        13. Variable editor
    3. Summary
  9. 4. Performance Optimization
    1. Enabling and configuring the Throttle module
      1. Configuring the Throttle module for auto throttling features
      2. Throttling your modules
      3. Throttling blocks
    2. Generating test users, categories, and content
    3. Views caching
      1. Clearing your Views 2 module cache
    4. Using Panels caching
      1. Creating a panel and adding content to it
    5. Summary
  10. 5. Using DB Maintenance and Boost
    1. Using the DB Maintenance module
    2. Using the Boost module
      1. Installing and configuring Boost
      2. Boost settings
        1. Boost File Cache settings
        2. Boost cacheability settings
        3. Boost directories and file extensions
        4. HTACCESS file tweaks
      3. Testing your Boost configuration
      4. Boost and Poormanscron
      5. Configuring Poormanscron
      6. Clearing the Boost cache
      7. Boost admin and stats blocks
        1. Boost: Pages cache status block
        2. Boost: Pages cache configuration block
      8. Summary of Boost's basic configuration
    3. Summary
  11. 6. Advanced Boost
    1. Updating contributed modules
    2. Recommended modules that work with Boost
      1. Global Redirect
      2. Transliteration and Pathauto
    3. Advanced Boost settings
      1. Boost advanced settings
        1. Testing your Database timestamp settings
        2. Boost crawler settings
    4. Summary
  12. 7. Using Memcache API and Integration
    1. Using the Memcache API and Integration module
      1. MoWeS Portable development WAMP server
      2. Installing Memcached libraries and service
      3. Integrating and testing Memcached with PHP 5.2.x
      4. Installing the Memcache API and Integration module
      5. Enabling the Memcache Admin module
        1. Memcache status
        2. Memcache statistics per page
      6. Viewing the Memcache tables in MySQL
      7. Running Memcache without saving cache data to your database
    2. Summary
  13. 8. Advanced Caching and Contributed Modules for Caching
    1. Cache Router
      1. Cache Router versus Memcache API
    2. Authenticated User Page Caching (Authcache)
      1. Tweaking your settings.php file to support Authcache
      2. Configuring the Authcache module
        1. Page Caching Settings
      3. Testing the Authcache module and its caching mechanism
        1. Checking the AuthcacheFooter code
        2. Checking the Authcache Debug window
    3. Advanced cache
      1. block_cache.patch
      2. comment_cache.patch
      3. forum_cache.patch
      4. node_cache.patch
      5. path_cache.patch
      6. search_cache.patch
      7. taxonomy_cache.patch
    4. APC (Alternative PHP cache)
    5. File Cache module
    6. Summary
  14. 9. Multisite Configuration and Performance
    1. Using Drupal multisite
      1. Configuring multisite in a localhost environment
        1. Creating the multisite folders
        2. Setting up databases for your multisite
        3. Tweaking settings.php for each site
        4. Editing your Apache configuration
        5. Tweaking the hosts driver file on Windows
        6. Tweaking the Base URL
        7. Loading your multisites
      2. Testing your multisite configuration
        1. Using core and contributed modules in multisite
        2. Installing modules and themes to a multisite
        3. Setting themes per multisite
      3. Caching and multisite
        1. Enabling page caching and CSS/JS optimization per site
    2. Multisite resources
    3. Summary