Introduction to Drupal 7 - Performance optimization
1. Introduction to Drupal 7
Bonus session 9.1
Performance
Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 1
2. Agenda
• Drupal performance
• Modules you can use to optimize your site
Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 2
3. Drupal performance
• Drupal is a complex system, it requires
attention when it comes to performance;
• Caching is one of the most popular ways to
improve your performance;
• There are core modules to help you cache
(optimize) your system performance;
• It’s always good to have your caching on when
you’re launching your website in production
Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 3
5. Bandwidth optimization
• The aggregation is a process of gathering
multiple/many files into one, so that there
fewer requests
• Old IE browsers have problems reading many
stylesheets -> another reason to aggregate css
files
Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 5
6. Cleaning cache
• Extremely important to know:
– From performance settings
– From admin menu
– From Drush (a bit advanced)
Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 6
7. Recent log messages
• Administration > Reports > Recent log
messages
• URL: admin/reports/dblog
• Shows what is going on and if there are issues
Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 7
8. Performance logging and monitoring
• Performance logging and monitoring module
is the previously Devel module
• Provides performance statistics logging for a
site, such as page generation times, and
memory usage, for each page load.
Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 8
9. Views caching
• Views is a very popular module which has its
own caching mechanisms
• To enable caching for a specific views view
– Go to the corresponding views view
– Go to the right Advances settings and find Caching
– Set a PHP or time-based caching
Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 9
10. Performance optimization modules
• Boost
• Performance Logging and Monitoring
• DB Maintenance
• Memcache API and Integration
• Authenticated User Page Caching (Authcache)
Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 10