Your SlideShare is downloading. ×
0
Worked on
while working at
Since then I have been working on
at
Gokul N K
Drupal Caching
For DUMMIES
Dwindling Attention Spans
Impatience is a virtue now
Why PERFORMANCE?
A 1 second delay in page response
can result in a 7% reduction in
conversions
Source : Akamai.com
In 2010, Google announced that
Website speed would have an
impact on search ranking.
Drupal is a database heavy
content management system.
Guess how many tables in
Drupal7 basic installation
My Blog - 138 Tables
My E-commerce Site
241 Tables
Thumb Rules of Caching
Process Once Use Multiple Times
Live with stale data when possible
Clear Caches infrequently
and keep it very specific
RDBMS is Slow
Key Value database are fast
Page Caching – Performance Page
Block Caching – Block Cache Alter
Aggregate javascript and css files
Disable Un-necessary ...
Disable DB logging(syslog)
Reduce 404 Errors
Fast 404 Responses
Client Side Validations
Compress Image and lazy loading
Us...
Use Devel Module to watch queries
Rewrite Views Queries/Avoid Views
XHProf
Hhvm, FPM, APC
DB Profiling and Tuning
Use Boost, don't Boot-strap DB
If your cache tables are huge
use memcached
Use Reverse Proxy Server
Use heiuristing Cache ...
On Server
Varnish for assets
Compress transfer
Keep Alive
Progressive JPEGS
Etags
Use CDNs
Master Slave DB Config
Database Clusters
Load Balancers
Check out
Jeff Eaton's Blog
CACHING IN CODE
“There are two hard things in
computer science:
Cache invalidation, Naming things
and
Off-by-one errors.”
More complicated than
you could ever imagine.
CACHE INVALIDATION
l Clear All Caches in performance page
l Admin Menu
l Flush Page Cache
l Expire
l Cache Actions
l Purge
Cache Clearing Mod...
Clear All Caches
Smartest function in D7?
cache_clear_all();
Important Links
http://bit.ly/drupal-
caching
Thank you, Gokul
Drupal Caching For Dummies
Drupal Caching For Dummies
Drupal Caching For Dummies
Drupal Caching For Dummies
Drupal Caching For Dummies
Drupal Caching For Dummies
Drupal Caching For Dummies
Drupal Caching For Dummies
Drupal Caching For Dummies
Upcoming SlideShare
Loading in...5
×

Drupal Caching For Dummies

273

Published on

Simple Steps to improve the performance of your site, in the increasing order of complexity.

Published in: Software
1 Comment
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total Views
273
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
7
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Drupal Caching For Dummies"

  1. 1. Worked on while working at Since then I have been working on at Gokul N K
  2. 2. Drupal Caching For DUMMIES
  3. 3. Dwindling Attention Spans Impatience is a virtue now Why PERFORMANCE?
  4. 4. A 1 second delay in page response can result in a 7% reduction in conversions Source : Akamai.com
  5. 5. In 2010, Google announced that Website speed would have an impact on search ranking.
  6. 6. Drupal is a database heavy content management system. Guess how many tables in Drupal7 basic installation
  7. 7. My Blog - 138 Tables My E-commerce Site 241 Tables
  8. 8. Thumb Rules of Caching
  9. 9. Process Once Use Multiple Times
  10. 10. Live with stale data when possible
  11. 11. Clear Caches infrequently and keep it very specific
  12. 12. RDBMS is Slow Key Value database are fast
  13. 13. Page Caching – Performance Page Block Caching – Block Cache Alter Aggregate javascript and css files Disable Un-necessary modules Cache Views content
  14. 14. Disable DB logging(syslog) Reduce 404 Errors Fast 404 Responses Client Side Validations Compress Image and lazy loading Use CSS Sprites
  15. 15. Use Devel Module to watch queries Rewrite Views Queries/Avoid Views XHProf Hhvm, FPM, APC DB Profiling and Tuning
  16. 16. Use Boost, don't Boot-strap DB If your cache tables are huge use memcached Use Reverse Proxy Server Use heiuristing Cache Clearing Implement Cache Warming
  17. 17. On Server Varnish for assets Compress transfer Keep Alive Progressive JPEGS Etags
  18. 18. Use CDNs Master Slave DB Config Database Clusters Load Balancers
  19. 19. Check out Jeff Eaton's Blog CACHING IN CODE
  20. 20. “There are two hard things in computer science: Cache invalidation, Naming things and Off-by-one errors.”
  21. 21. More complicated than you could ever imagine. CACHE INVALIDATION
  22. 22. l Clear All Caches in performance page l Admin Menu l Flush Page Cache l Expire l Cache Actions l Purge Cache Clearing Modules
  23. 23. Clear All Caches
  24. 24. Smartest function in D7? cache_clear_all();
  25. 25. Important Links http://bit.ly/drupal- caching
  26. 26. Thank you, Gokul
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×