Overview Introduction to ASP.NET caching Output caching Fragment caching Data caching 1.
Drupal Caching For Dummies
description
Transcript of Drupal Caching For Dummies
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 modules
Cache Views content
Disable DB logging(syslog)
Reduce 404 Errors
Fast 404 Responses
Client Side Validations
Compress Image and lazy loading
Use CSS Sprites
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 Clearing
Implement Cache Warming
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 pagel Admin Menul Flush Page Cachel Expirel Cache Actionsl Purge
Cache Clearing Modules
Clear All Caches
Smartest function in D7?
cache_clear_all();
Important Links
http://bit.ly/drupal-caching
Thank you, Gokul