SlideShare a Scribd company logo
1 of 16
Performance
                                                  Strategies for the
                                                 Drupal Webmaster
                                                          Presented by Trevor James




http://www.packtpub.com/drupal-6-performance-tips-to-maximize-and-optimize-your-framework/


                                   Trevor James | Drupal Developer |
                               drupal6performancetips@gmail.com | USA
Author
 Trevor James | Drupal Developer & Webmaster | http://variantcube.com/

 Trevor has been designing Web sites for over 13 years, specializing in HTML, CSS,
 ColdFusion, and has worked with Drupal intensively for over 2 years.

 Trevor is interested in all aspects of Drupal including best methods of developing
 Drupal themes, Drupal site performance, and using CCK, Views and Panels to develop
 Frontend interfaces to support data intensive Web sites.

 Trevor is currently working on a number of Drupal related projects for non-profit,
 Education-based and small business organizations.

 Trevor created an 11.5 hour video tutorial series comprising 114 lessons titled
 Introduction to Drupal 6 for VTC (Virtual Training Company) in 2009. The videos are
 Available here: http://www.vtc.com/products/Introduction-To-Drupal-6-Tutorials.htm


                              Trevor James | Drupal Developer |
                          drupal6performancetips@gmail.com | USA
Why a book on Drupal Performance?
 • Many Drupal books are on the market but no other book focuses specifically on
 Drupal core performance.

 • To contribute to the Drupal community of users, Webmasters, and developers,
 presenting them with a practical book on how to keep Drupal sites running smoothly
 and presenting practical tips on keeping sites maintained and updated
 using core performance strategies.

 • To target both beginners and advanced users of the Drupal framework/CMS. This
 book provides practical tips and knowledge for novice Drupal users as well as
 advanced Drupal developers.

 • To help Drupal site Webmasters and developers keep their sites running fast and
 well maintained.




                             Trevor James | Drupal Developer |
                         drupal6performancetips@gmail.com | USA
Sample Chapter and Articles
Visit the Packt Publishing Web site for a sample chapter from the book and
Articles excerpted from the book – both chapter and articles are available as
PDF downloads:

Sample Chapter 5: Using DB Maintenance and Boost:
http://www.packtpub.com/files/5845_Drupal%206%20Performance%20Tips_%20SampleChapter.pdf

Articles:

Drupal 6 Performance Optimization Using Throttle and Devel Module

Drupal 6 Performance Optimization Using Views and Panels Caching




                                    Trevor James | Drupal Developer |
                                drupal6performancetips@gmail.com | USA
What you will learn from the book
• Upgrade your Drupal site – both full version upgrades and security patches

• Backup and maintain your Drupal 6 site using core and contributed modules

• Run core Drupal page compression, CSS and JS compression, and use Drupal core
page caching

• Use the Development (Devel) module to monitor page loads and queries

• Use the Boost module for anonymous page caching

• Install and use Memcache API, Authcache, and Advanced Cache modules

• Configure a Drupal multisite environment




                              Trevor James | Drupal Developer |
                          drupal6performancetips@gmail.com | USA
Upgrade your Drupal site
• Demonstrates how to upgrade a Drupal 5.x site to Drupal 6.x

• Best methods for backing up your site and database

• Upgrade to latest Drupal 5.x

• Install contributed module upgrades and the Update Status module

• Backup and export Views

• Upgrade to Drupal 6.x & run update.php

• Dealing with parse errors, white screens and other upgrade glitches

• Best practices for tweaking your PHP memory limit; resetting your Views;
and upgrading your custom theme

                              Trevor James | Drupal Developer |
                          drupal6performancetips@gmail.com | USA
Maintain your Drupal site
• Understanding your Drupal configuration file (settings.php)

• Understanding your PHP and MySQL settings

• Introduction to Drupal caching

• Enabling Normal and Aggressive page caching

• Block caching

• Other bandwidth concerns such as optimizing CSS files; and optimizing Javascript
files

• What CSS optimization looks like in Firebug

• Performance cache, theme registry; running cron and Poormanscron module; best
practices for backing up your Drupal site
                              Trevor James | Drupal Developer |
                          drupal6performancetips@gmail.com | USA
Use Development module
• What do your recent log entries tell you?

• The Development (Devel) module:

The Devel module provides a suite of tools for the Drupal theme and performance
developer. Two major components of the Devel module include helper utilities that
monitor performance of your site, and tools for themers that allow for quick and
more accurate theme development.

In chapter 3 we look at how to use the Devel module to enhance performance on our
Drupal site. Both Drupal beginners and advanced developers will gain Development
module best practice tips from this chapter.

We’ll use the Devel module to check on database queries that occur during our page
loads and how long these queries take to run. We’ll use the Development block to
get easier access to some common performance tools such as cron, performance cache,
and theme registry.
                              Trevor James | Drupal Developer |
                          drupal6performancetips@gmail.com | USA
Performance Optimization
• Throttle module and auto throttling features in Drupal

• Throttling modules and blocks

• How do you generate test users, content and categories on your Drupal site?

• Views 2 module caching

• Panels module caching




                               Trevor James | Drupal Developer |
                           drupal6performancetips@gmail.com | USA
Using DB Maintenance and Boost
• How to use the DB Maintenance module to optimize your MySQL database

• Introduction to the Boost module

• Install & configure Boost

• Boost file cache settings / cacheability settings

• Boost directories and file extensions

• Tweaking .htaccess to support our Boost configuration (see code sample on next
slide




                                  Trevor James | Drupal Developer |
                              drupal6performancetips@gmail.com | USA
### BOOST START ###
AddDefaultCharset utf-8
<FilesMatch "(.html|.xml)$">
<IfModule mod_headers.c>
Header set Expires "Sun, 19 Nov 1978 05:00:00 GMT"
Header set Cache-Control "no-store, no-cache, must-revalidate,
post-check=0, pre-check=0"
</IfModule>
</FilesMatch>
<IfModule mod_mime.c>
AddCharset utf-8 .html
AddCharset utf-8 .xml
AddCharset utf-8 .css
AddCharset utf-8 .js
</IfModule>
<FilesMatch ".html.gz$">
ForceType text/html
</FilesMatch>
<FilesMatch ".xml.gz$">
ForceType text/xml
</FilesMatch>
<FilesMatch ".css.gz$">
ForceType text/css
</FilesMatch>
<FilesMatch ".js.gz$">
ForceType text/javascript
</FilesMatch>
# Gzip Cookie Test
RewriteRule boost-gzip-cookie-test.html cache/perm/boost-gzipcookie-
test.html.gz [L,T=text/html]
# NORMAL - Cached css & js files
RewriteCond %{DOCUMENT_ROOT}/fire/cache/perm/%{SERVER_
NAME}%{REQUEST_URI}_.css -s
RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_.css
[L,QSA,T=text/css]
RewriteCond %{DOCUMENT_ROOT}/fire/cache/perm/%{SERVER_
NAME}%{REQUEST_URI}_.js -s
RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_.js
[L,QSA,T=text/javascript]                                Trevor James | Drupal Developer |
# Caching for anonymous users                       drupal6performancetips@gmail.com | USA
More on the Boost module
• Testing your Boost configuration

• Using Boost with Poormanscron

• Clearing your Boost cache

• Boost module admin and stats blocks

• Boost Pages cache status block & configuration block




                              Trevor James | Drupal Developer |
                          drupal6performancetips@gmail.com | USA
Advanced Boost
In this chapter, we're going to continue to use the Boost module and look in detail at
some of the module's advanced settings and its configuration.

• Modules that work with Boost – Transliteration, Pathauto and Global Redirect

• Advanced Boost settings

• Adding rules using Rules module

• Testing your Database timestamp settings

• Boost crawler settings




                                Trevor James | Drupal Developer |
                            drupal6performancetips@gmail.com | USA
Using Memcache API and Integration
• How to install a portable development WAMP server – using MoWeS Portable

• Installing Memcached libraries and service

• Integrating and testing Memcached with PHP 5.2.x

• Installing the Memcache API and Integration module

• Enabling the Memcache Admin module

• Memcache status and statistics per page

• Running Memcache without saving cache data to your database




                              Trevor James | Drupal Developer |
                          drupal6performancetips@gmail.com | USA
Advanced Caching
This chapter will discuss contributed modules for advanced caching including Cache
Router, Authenticated User Page Caching, Advanced Cache, APC (Alternative PHP
Cache), File Cache, and so on.
In this chapter, we're going to return to our discussion of Drupal caching
mechanisms and take a detailed look at a group of contributed caching modules
that allow for more granular and advanced cache confi gurations within our site.
By the end of this chapter you will know how to install and confi gure the following
contributed caching modules:

• Cache Router
• Authenticated User Page Caching (Authcache)
• Advanced Cache




                              Trevor James | Drupal Developer |
                          drupal6performancetips@gmail.com | USA
Buy the book now
                                                    at Packtpub.com

                                                      The title is also available via
                                                    Amazon.com; and via links on my
                                                      Web site, variantcube.com



http://www.packtpub.com/drupal-6-performance-tips-to-maximize-and-optimize-your-framework/


                                   Trevor James | Drupal Developer |
                               drupal6performancetips@gmail.com | USA

More Related Content

What's hot

Drupal Caching For Dummies
Drupal Caching For DummiesDrupal Caching For Dummies
Drupal Caching For DummiesGokul Nk
 
Web profiler in drupal 8
Web profiler in drupal 8Web profiler in drupal 8
Web profiler in drupal 8valuebound
 
Template tuning for high performance
Template tuning for high performanceTemplate tuning for high performance
Template tuning for high performanceChris Davenport
 
WordCamp RVA 2011 - Performance & Tuning
WordCamp RVA 2011 - Performance & TuningWordCamp RVA 2011 - Performance & Tuning
WordCamp RVA 2011 - Performance & TuningTimothy Wood
 
Caching Strategies for Scaling Drupal: Common Missteps vs Best Practices
Caching Strategies for Scaling Drupal: Common Missteps vs Best PracticesCaching Strategies for Scaling Drupal: Common Missteps vs Best Practices
Caching Strategies for Scaling Drupal: Common Missteps vs Best PracticesAcquia
 
I Can Haz More Performanz?
I Can Haz More Performanz?I Can Haz More Performanz?
I Can Haz More Performanz?Andy Melichar
 
Building Responsive Applications Using XPages
Building Responsive Applications Using XPagesBuilding Responsive Applications Using XPages
Building Responsive Applications Using XPagesTeamstudio
 
High Performance Drupal
High Performance DrupalHigh Performance Drupal
High Performance DrupalChapter Three
 
Improving Website Performance and Scalability with Memcached
Improving Website Performance and Scalability with MemcachedImproving Website Performance and Scalability with Memcached
Improving Website Performance and Scalability with MemcachedAcquia
 
Optimizing Magento Performance with Zend Server
Optimizing Magento Performance with Zend ServerOptimizing Magento Performance with Zend Server
Optimizing Magento Performance with Zend Servervarien
 
Drupal Experience Sharing at Prime College
Drupal Experience Sharing at Prime CollegeDrupal Experience Sharing at Prime College
Drupal Experience Sharing at Prime Collegeguest08bc36
 
Zimmertwins Presentation
Zimmertwins PresentationZimmertwins Presentation
Zimmertwins PresentationAshok Modi
 
Drupal Installation &amp; Configuration
Drupal Installation &amp; ConfigurationDrupal Installation &amp; Configuration
Drupal Installation &amp; ConfigurationAnil Mishra
 
Midwest PHP - Scaling Magento
Midwest PHP - Scaling MagentoMidwest PHP - Scaling Magento
Midwest PHP - Scaling MagentoMathew Beane
 
Improving Website Performance with Memecached Webinar | Achieve Internet
Improving Website Performance with Memecached Webinar | Achieve InternetImproving Website Performance with Memecached Webinar | Achieve Internet
Improving Website Performance with Memecached Webinar | Achieve InternetAchieve Internet
 

What's hot (17)

Drupal Caching For Dummies
Drupal Caching For DummiesDrupal Caching For Dummies
Drupal Caching For Dummies
 
Web profiler in drupal 8
Web profiler in drupal 8Web profiler in drupal 8
Web profiler in drupal 8
 
Template tuning for high performance
Template tuning for high performanceTemplate tuning for high performance
Template tuning for high performance
 
WordCamp RVA 2011 - Performance & Tuning
WordCamp RVA 2011 - Performance & TuningWordCamp RVA 2011 - Performance & Tuning
WordCamp RVA 2011 - Performance & Tuning
 
Caching Strategies for Scaling Drupal: Common Missteps vs Best Practices
Caching Strategies for Scaling Drupal: Common Missteps vs Best PracticesCaching Strategies for Scaling Drupal: Common Missteps vs Best Practices
Caching Strategies for Scaling Drupal: Common Missteps vs Best Practices
 
I Can Haz More Performanz?
I Can Haz More Performanz?I Can Haz More Performanz?
I Can Haz More Performanz?
 
Building Responsive Applications Using XPages
Building Responsive Applications Using XPagesBuilding Responsive Applications Using XPages
Building Responsive Applications Using XPages
 
Drupal
DrupalDrupal
Drupal
 
RPC-CMS-Blog-Platforms
RPC-CMS-Blog-PlatformsRPC-CMS-Blog-Platforms
RPC-CMS-Blog-Platforms
 
High Performance Drupal
High Performance DrupalHigh Performance Drupal
High Performance Drupal
 
Improving Website Performance and Scalability with Memcached
Improving Website Performance and Scalability with MemcachedImproving Website Performance and Scalability with Memcached
Improving Website Performance and Scalability with Memcached
 
Optimizing Magento Performance with Zend Server
Optimizing Magento Performance with Zend ServerOptimizing Magento Performance with Zend Server
Optimizing Magento Performance with Zend Server
 
Drupal Experience Sharing at Prime College
Drupal Experience Sharing at Prime CollegeDrupal Experience Sharing at Prime College
Drupal Experience Sharing at Prime College
 
Zimmertwins Presentation
Zimmertwins PresentationZimmertwins Presentation
Zimmertwins Presentation
 
Drupal Installation &amp; Configuration
Drupal Installation &amp; ConfigurationDrupal Installation &amp; Configuration
Drupal Installation &amp; Configuration
 
Midwest PHP - Scaling Magento
Midwest PHP - Scaling MagentoMidwest PHP - Scaling Magento
Midwest PHP - Scaling Magento
 
Improving Website Performance with Memecached Webinar | Achieve Internet
Improving Website Performance with Memecached Webinar | Achieve InternetImproving Website Performance with Memecached Webinar | Achieve Internet
Improving Website Performance with Memecached Webinar | Achieve Internet
 

Viewers also liked

Drupal 6 Performance Tips
Drupal 6 Performance TipsDrupal 6 Performance Tips
Drupal 6 Performance TipsTrevor James
 
High Performance on Drupal 7
High Performance on Drupal 7High Performance on Drupal 7
High Performance on Drupal 7Exove
 
Drupal theming using the 960.gs grid system
Drupal theming using the 960.gs grid systemDrupal theming using the 960.gs grid system
Drupal theming using the 960.gs grid systemFour Kitchens
 
Building Faster Websites
Building Faster WebsitesBuilding Faster Websites
Building Faster WebsitesMatthew Farina
 
2020 Floss Roadmap Version 2009 Owf
2020 Floss Roadmap Version 2009 Owf2020 Floss Roadmap Version 2009 Owf
2020 Floss Roadmap Version 2009 OwfCompatibleOne
 

Viewers also liked (6)

Drupal 6 Performance Tips
Drupal 6 Performance TipsDrupal 6 Performance Tips
Drupal 6 Performance Tips
 
High Performance on Drupal 7
High Performance on Drupal 7High Performance on Drupal 7
High Performance on Drupal 7
 
Drupal theming using the 960.gs grid system
Drupal theming using the 960.gs grid systemDrupal theming using the 960.gs grid system
Drupal theming using the 960.gs grid system
 
Building Faster Websites
Building Faster WebsitesBuilding Faster Websites
Building Faster Websites
 
2020 Floss Roadmap Version 2009 Owf
2020 Floss Roadmap Version 2009 Owf2020 Floss Roadmap Version 2009 Owf
2020 Floss Roadmap Version 2009 Owf
 
Cloud and Standards
Cloud and StandardsCloud and Standards
Cloud and Standards
 

Similar to Drupal 6-performance-tips-slideshare

Absolute Beginners Guide to Drupal
Absolute Beginners Guide to DrupalAbsolute Beginners Guide to Drupal
Absolute Beginners Guide to DrupalRod Martin
 
Drupal: an Overview
Drupal: an OverviewDrupal: an Overview
Drupal: an OverviewMatt Weaver
 
Make Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speedMake Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speedAndy Kucharski
 
Building User-Centred Websites with Drupal
Building User-Centred Websites with DrupalBuilding User-Centred Websites with Drupal
Building User-Centred Websites with Drupalamanda etches
 
Introduction To Drupal
Introduction To DrupalIntroduction To Drupal
Introduction To DrupalLauren Roth
 
Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016
Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016
Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016Paul McKibben
 
Drupal 6x Installation
Drupal 6x Installation Drupal 6x Installation
Drupal 6x Installation Micky Metts
 
Drupal Performance Audit and Optimization
Drupal Performance Audit and OptimizationDrupal Performance Audit and Optimization
Drupal Performance Audit and OptimizationZyxware Technologies
 
Introduction to Drupal 7 - Performance optimization
Introduction to Drupal 7 - Performance optimizationIntroduction to Drupal 7 - Performance optimization
Introduction to Drupal 7 - Performance optimizationKalin Chernev
 
DrupalCon Austin - Absolute Beginner's Guide to Drupal
DrupalCon Austin - Absolute Beginner's Guide to DrupalDrupalCon Austin - Absolute Beginner's Guide to Drupal
DrupalCon Austin - Absolute Beginner's Guide to DrupalRod Martin
 
Drupaldelphia 2013 Presentation- Making Your Site more Friendly to Search Eng...
Drupaldelphia 2013 Presentation- Making Your Site more Friendly to Search Eng...Drupaldelphia 2013 Presentation- Making Your Site more Friendly to Search Eng...
Drupaldelphia 2013 Presentation- Making Your Site more Friendly to Search Eng...Anson Han
 
Drupal Global Training Day by Drupal Mumbai 6th Sep - Drupal Intro
Drupal Global Training Day by Drupal Mumbai 6th Sep - Drupal IntroDrupal Global Training Day by Drupal Mumbai 6th Sep - Drupal Intro
Drupal Global Training Day by Drupal Mumbai 6th Sep - Drupal IntroDrupalMumbai
 
Open Source CMS Certification
Open Source CMS CertificationOpen Source CMS Certification
Open Source CMS CertificationVskills
 
8 Web Practices for Drupal
8  Web Practices for Drupal8  Web Practices for Drupal
8 Web Practices for DrupalWingston
 
Plain english guide to drupal 8 criticals
Plain english guide to drupal 8 criticalsPlain english guide to drupal 8 criticals
Plain english guide to drupal 8 criticalsAngela Byron
 
EdTechJoker Spring 2020 - Lecture 5 grav cms
EdTechJoker Spring 2020 - Lecture 5 grav cmsEdTechJoker Spring 2020 - Lecture 5 grav cms
EdTechJoker Spring 2020 - Lecture 5 grav cmsBryan Ollendyke
 

Similar to Drupal 6-performance-tips-slideshare (20)

Absolute Beginners Guide to Drupal
Absolute Beginners Guide to DrupalAbsolute Beginners Guide to Drupal
Absolute Beginners Guide to Drupal
 
Drupal: an Overview
Drupal: an OverviewDrupal: an Overview
Drupal: an Overview
 
Make Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speedMake Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speed
 
Building User-Centred Websites with Drupal
Building User-Centred Websites with DrupalBuilding User-Centred Websites with Drupal
Building User-Centred Websites with Drupal
 
Drupal Skils Lab 302Labs
Drupal Skils Lab 302Labs Drupal Skils Lab 302Labs
Drupal Skils Lab 302Labs
 
Introduction To Drupal
Introduction To DrupalIntroduction To Drupal
Introduction To Drupal
 
Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016
Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016
Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016
 
Drupal 6x Installation
Drupal 6x Installation Drupal 6x Installation
Drupal 6x Installation
 
Test
TestTest
Test
 
Drupal Performance Audit and Optimization
Drupal Performance Audit and OptimizationDrupal Performance Audit and Optimization
Drupal Performance Audit and Optimization
 
Introduction to Drupal 7 - Performance optimization
Introduction to Drupal 7 - Performance optimizationIntroduction to Drupal 7 - Performance optimization
Introduction to Drupal 7 - Performance optimization
 
DrupalCon Austin - Absolute Beginner's Guide to Drupal
DrupalCon Austin - Absolute Beginner's Guide to DrupalDrupalCon Austin - Absolute Beginner's Guide to Drupal
DrupalCon Austin - Absolute Beginner's Guide to Drupal
 
Drupaldelphia 2013 Presentation- Making Your Site more Friendly to Search Eng...
Drupaldelphia 2013 Presentation- Making Your Site more Friendly to Search Eng...Drupaldelphia 2013 Presentation- Making Your Site more Friendly to Search Eng...
Drupaldelphia 2013 Presentation- Making Your Site more Friendly to Search Eng...
 
Drupal Global Training Day by Drupal Mumbai 6th Sep - Drupal Intro
Drupal Global Training Day by Drupal Mumbai 6th Sep - Drupal IntroDrupal Global Training Day by Drupal Mumbai 6th Sep - Drupal Intro
Drupal Global Training Day by Drupal Mumbai 6th Sep - Drupal Intro
 
Open Source CMS Certification
Open Source CMS CertificationOpen Source CMS Certification
Open Source CMS Certification
 
Drupal in-depth
Drupal in-depthDrupal in-depth
Drupal in-depth
 
8 Web Practices for Drupal
8  Web Practices for Drupal8  Web Practices for Drupal
8 Web Practices for Drupal
 
Drupal 7 training
Drupal 7 trainingDrupal 7 training
Drupal 7 training
 
Plain english guide to drupal 8 criticals
Plain english guide to drupal 8 criticalsPlain english guide to drupal 8 criticals
Plain english guide to drupal 8 criticals
 
EdTechJoker Spring 2020 - Lecture 5 grav cms
EdTechJoker Spring 2020 - Lecture 5 grav cmsEdTechJoker Spring 2020 - Lecture 5 grav cms
EdTechJoker Spring 2020 - Lecture 5 grav cms
 

Recently uploaded

Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 

Recently uploaded (20)

Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

Drupal 6-performance-tips-slideshare

  • 1. Performance Strategies for the Drupal Webmaster Presented by Trevor James http://www.packtpub.com/drupal-6-performance-tips-to-maximize-and-optimize-your-framework/ Trevor James | Drupal Developer | drupal6performancetips@gmail.com | USA
  • 2. Author Trevor James | Drupal Developer & Webmaster | http://variantcube.com/ Trevor has been designing Web sites for over 13 years, specializing in HTML, CSS, ColdFusion, and has worked with Drupal intensively for over 2 years. Trevor is interested in all aspects of Drupal including best methods of developing Drupal themes, Drupal site performance, and using CCK, Views and Panels to develop Frontend interfaces to support data intensive Web sites. Trevor is currently working on a number of Drupal related projects for non-profit, Education-based and small business organizations. Trevor created an 11.5 hour video tutorial series comprising 114 lessons titled Introduction to Drupal 6 for VTC (Virtual Training Company) in 2009. The videos are Available here: http://www.vtc.com/products/Introduction-To-Drupal-6-Tutorials.htm Trevor James | Drupal Developer | drupal6performancetips@gmail.com | USA
  • 3. Why a book on Drupal Performance? • Many Drupal books are on the market but no other book focuses specifically on Drupal core performance. • To contribute to the Drupal community of users, Webmasters, and developers, presenting them with a practical book on how to keep Drupal sites running smoothly and presenting practical tips on keeping sites maintained and updated using core performance strategies. • To target both beginners and advanced users of the Drupal framework/CMS. This book provides practical tips and knowledge for novice Drupal users as well as advanced Drupal developers. • To help Drupal site Webmasters and developers keep their sites running fast and well maintained. Trevor James | Drupal Developer | drupal6performancetips@gmail.com | USA
  • 4. Sample Chapter and Articles Visit the Packt Publishing Web site for a sample chapter from the book and Articles excerpted from the book – both chapter and articles are available as PDF downloads: Sample Chapter 5: Using DB Maintenance and Boost: http://www.packtpub.com/files/5845_Drupal%206%20Performance%20Tips_%20SampleChapter.pdf Articles: Drupal 6 Performance Optimization Using Throttle and Devel Module Drupal 6 Performance Optimization Using Views and Panels Caching Trevor James | Drupal Developer | drupal6performancetips@gmail.com | USA
  • 5. What you will learn from the book • Upgrade your Drupal site – both full version upgrades and security patches • Backup and maintain your Drupal 6 site using core and contributed modules • Run core Drupal page compression, CSS and JS compression, and use Drupal core page caching • Use the Development (Devel) module to monitor page loads and queries • Use the Boost module for anonymous page caching • Install and use Memcache API, Authcache, and Advanced Cache modules • Configure a Drupal multisite environment Trevor James | Drupal Developer | drupal6performancetips@gmail.com | USA
  • 6. Upgrade your Drupal site • Demonstrates how to upgrade a Drupal 5.x site to Drupal 6.x • Best methods for backing up your site and database • Upgrade to latest Drupal 5.x • Install contributed module upgrades and the Update Status module • Backup and export Views • Upgrade to Drupal 6.x & run update.php • Dealing with parse errors, white screens and other upgrade glitches • Best practices for tweaking your PHP memory limit; resetting your Views; and upgrading your custom theme Trevor James | Drupal Developer | drupal6performancetips@gmail.com | USA
  • 7. Maintain your Drupal site • Understanding your Drupal configuration file (settings.php) • Understanding your PHP and MySQL settings • Introduction to Drupal caching • Enabling Normal and Aggressive page caching • Block caching • Other bandwidth concerns such as optimizing CSS files; and optimizing Javascript files • What CSS optimization looks like in Firebug • Performance cache, theme registry; running cron and Poormanscron module; best practices for backing up your Drupal site Trevor James | Drupal Developer | drupal6performancetips@gmail.com | USA
  • 8. Use Development module • What do your recent log entries tell you? • The Development (Devel) module: The Devel module provides a suite of tools for the Drupal theme and performance developer. Two major components of the Devel module include helper utilities that monitor performance of your site, and tools for themers that allow for quick and more accurate theme development. In chapter 3 we look at how to use the Devel module to enhance performance on our Drupal site. Both Drupal beginners and advanced developers will gain Development module best practice tips from this chapter. We’ll use the Devel module to check on database queries that occur during our page loads and how long these queries take to run. We’ll use the Development block to get easier access to some common performance tools such as cron, performance cache, and theme registry. Trevor James | Drupal Developer | drupal6performancetips@gmail.com | USA
  • 9. Performance Optimization • Throttle module and auto throttling features in Drupal • Throttling modules and blocks • How do you generate test users, content and categories on your Drupal site? • Views 2 module caching • Panels module caching Trevor James | Drupal Developer | drupal6performancetips@gmail.com | USA
  • 10. Using DB Maintenance and Boost • How to use the DB Maintenance module to optimize your MySQL database • Introduction to the Boost module • Install & configure Boost • Boost file cache settings / cacheability settings • Boost directories and file extensions • Tweaking .htaccess to support our Boost configuration (see code sample on next slide Trevor James | Drupal Developer | drupal6performancetips@gmail.com | USA
  • 11. ### BOOST START ### AddDefaultCharset utf-8 <FilesMatch "(.html|.xml)$"> <IfModule mod_headers.c> Header set Expires "Sun, 19 Nov 1978 05:00:00 GMT" Header set Cache-Control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0" </IfModule> </FilesMatch> <IfModule mod_mime.c> AddCharset utf-8 .html AddCharset utf-8 .xml AddCharset utf-8 .css AddCharset utf-8 .js </IfModule> <FilesMatch ".html.gz$"> ForceType text/html </FilesMatch> <FilesMatch ".xml.gz$"> ForceType text/xml </FilesMatch> <FilesMatch ".css.gz$"> ForceType text/css </FilesMatch> <FilesMatch ".js.gz$"> ForceType text/javascript </FilesMatch> # Gzip Cookie Test RewriteRule boost-gzip-cookie-test.html cache/perm/boost-gzipcookie- test.html.gz [L,T=text/html] # NORMAL - Cached css & js files RewriteCond %{DOCUMENT_ROOT}/fire/cache/perm/%{SERVER_ NAME}%{REQUEST_URI}_.css -s RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_.css [L,QSA,T=text/css] RewriteCond %{DOCUMENT_ROOT}/fire/cache/perm/%{SERVER_ NAME}%{REQUEST_URI}_.js -s RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_.js [L,QSA,T=text/javascript] Trevor James | Drupal Developer | # Caching for anonymous users drupal6performancetips@gmail.com | USA
  • 12. More on the Boost module • Testing your Boost configuration • Using Boost with Poormanscron • Clearing your Boost cache • Boost module admin and stats blocks • Boost Pages cache status block & configuration block Trevor James | Drupal Developer | drupal6performancetips@gmail.com | USA
  • 13. Advanced Boost In this chapter, we're going to continue to use the Boost module and look in detail at some of the module's advanced settings and its configuration. • Modules that work with Boost – Transliteration, Pathauto and Global Redirect • Advanced Boost settings • Adding rules using Rules module • Testing your Database timestamp settings • Boost crawler settings Trevor James | Drupal Developer | drupal6performancetips@gmail.com | USA
  • 14. Using Memcache API and Integration • How to install a portable development WAMP server – using MoWeS Portable • Installing Memcached libraries and service • Integrating and testing Memcached with PHP 5.2.x • Installing the Memcache API and Integration module • Enabling the Memcache Admin module • Memcache status and statistics per page • Running Memcache without saving cache data to your database Trevor James | Drupal Developer | drupal6performancetips@gmail.com | USA
  • 15. Advanced Caching This chapter will discuss contributed modules for advanced caching including Cache Router, Authenticated User Page Caching, Advanced Cache, APC (Alternative PHP Cache), File Cache, and so on. In this chapter, we're going to return to our discussion of Drupal caching mechanisms and take a detailed look at a group of contributed caching modules that allow for more granular and advanced cache confi gurations within our site. By the end of this chapter you will know how to install and confi gure the following contributed caching modules: • Cache Router • Authenticated User Page Caching (Authcache) • Advanced Cache Trevor James | Drupal Developer | drupal6performancetips@gmail.com | USA
  • 16. Buy the book now at Packtpub.com The title is also available via Amazon.com; and via links on my Web site, variantcube.com http://www.packtpub.com/drupal-6-performance-tips-to-maximize-and-optimize-your-framework/ Trevor James | Drupal Developer | drupal6performancetips@gmail.com | USA