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