speed up that site! - a guide to caching plugins

12
semperfiwebdesign.com semperfiwebdesign.com Speed Up That Site! A guide to caching plugins Peter Baylies

Upload: peter-baylies

Post on 06-May-2015

665 views

Category:

Technology


0 download

DESCRIPTION

This session will cover how to use popular free plugins to speed up sites and optimize them for better performance. We’ll go over basics of caching and discuss the pitfalls and issues you have to watch out for especially when working with typical shared hosting services.

TRANSCRIPT

Page 1: Speed Up That Site! - a guide to caching plugins

semperfiwebdesign.com semperfiwebdesign.com

Speed  Up  That  Site!    A  guide  to  caching  plugins    

Peter  Baylies  

Page 2: Speed Up That Site! - a guide to caching plugins

semperfiwebdesign.com

My  site  is  slow!    

•   Why  is  my  site  slow?  –   I  have  no  idea.  

•   What  could  it  be?  –   HosEng  –   Theme  –   Plugins  –   Server  –   Gremlins  

Page 3: Speed Up That Site! - a guide to caching plugins

semperfiwebdesign.com

Can  I  improve  this?  

•   Sure!  –   Install  a  caching  plugin        

•   What  is  that?  –   Let  me  Google  that  for  you  

Page 4: Speed Up That Site! - a guide to caching plugins

semperfiwebdesign.com

Cache  /kaSH/  (verb)  

gerund  or  present  parEciple:  caching  1.  store  away  in  hiding  or  for  future  use.  COMPUTING  store  (data)  in  a  cache  memory.  COMPUTING  provide  (hardware)  with  a  cache  memory  

Page 5: Speed Up That Site! - a guide to caching plugins

semperfiwebdesign.com

Analogies…  

Page 6: Speed Up That Site! - a guide to caching plugins

semperfiwebdesign.com

Analogies  –  it’s  like…  

•   Squirrels  –   Stockpile  for  winter,  you  might  need  it  then!  

•   Going  to  the  store  –   Stock  up  on  groceries!  

•   Pancakes  –   Make  your  own  pancake  mix,  save  Eme  later!  

•   Recipes  

Page 7: Speed Up That Site! - a guide to caching plugins

semperfiwebdesign.com

Understanding  the  Environment  

•   “LAMP”  Environment  –   Linux  –   Apache  –   MySQL  –   PHP    

•   and…  WordPress!  

Page 8: Speed Up That Site! - a guide to caching plugins

semperfiwebdesign.com

Major  Caching  Plugins  

•   WP  Super  Cache  –   Pro:  Does  page  caching  well  –   Pro:  Easy  to  set  up  –   Con:  Doesn’t  have  an  object  cache  

•   W3  Total  Cache  –   Pro:  comprehensive  caching  plugin  –   Pro:  Has  a  lot  of  opEons  –   Con:  Has  a  lot  of  opEons  

Page 9: Speed Up That Site! - a guide to caching plugins

semperfiwebdesign.com

Ok  But  What  Is  It  Really?  

•   Page  caching  –  save  the  page  for  later  •   Object  caching  –  save  a  result  for  later  •   Database  caching  –  save  a  query  for  later  •   Browser  caching  –  ask  the  user  to  save  it  •   CDN  –  get  another  server  to  help  you  

Page 10: Speed Up That Site! - a guide to caching plugins

semperfiwebdesign.com

Avoiding  Extra  Work  

•   Page  caching  –  avoiding  MySQL  and  PHP  •   Object  caching  –  avoiding  MySQL  (and  PHP?)  •   Database  caching  –  avoiding  MySQL  •   Browser  caching  –  avoiding  Apache  •   CDN  –  avoiding  your  server  enErely  

Page 11: Speed Up That Site! - a guide to caching plugins

semperfiwebdesign.com

Awesome!  What  else?  

•   Caching  backends  –   memcached  –   APC  

•   Caching  frontends  –   Varnish  

•     WordPress  features  –   Transients  –   Drop-­‐ins  

Page 12: Speed Up That Site! - a guide to caching plugins

semperfiwebdesign.com

QuesEons?  

•   Thank  you!  •   Further  Reading:  

–   hap://tollmanz.com/core-­‐caching-­‐concepts-­‐in-­‐wordpress/  –   hap://codex.wordpress.org/WordPress_OpEmizaEon/Caching