19
Caching and Optimization How to Speed Up Your WordPress Website WordCamp Orlando 2012

Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

Embed Size (px)

DESCRIPTION

Its a presentation on how to speed up your WordPress site.

Citation preview

Page 1: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

Caching and Optimization

How to Speed Up Your WordPress Website

WordCamp Orlando 2012

Page 2: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

Who Am I?● M Asif Rahman

● CEO, A. R. Communications (ARCom in short)

● Company: ARCom.com.bd

● Blog: Asif.im

● @Asif2BD

Page 3: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

What I Do?● Working With WordPress Since 2004● Founded ARCom in 2007, and Working as CEO● We have 500+ web property● We run site like TheTechJournal.com with monthly

14 Million traffic● We also run site like TheWPTheme.com,

WPDeveloper.net etc etc

Page 4: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

What is this Session About?● Caching in WordPress● Optimization in Brief ● Configuring your WordPress● Selecting Themes & Plugin● How to select Hosting● What Plugin to use for Caching?● Basic Settings for W3 Total Cache● Advance Setting for W3 Total Cache

Page 5: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

Is this Session for you?This is perfect for you if ..● Just made a simple blog● Running a medium traffic site● Important but low traffic business site● High traffic but static page type site● Highly dynamic site● Your site have millions of monthly traffic.

Page 6: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

What is Caching in WordPress?Image Credit: kidnapcustomers.com

Page 7: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

What is Optimization?Image Credit: WPWebHost.com

Page 8: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

Hosting Comes First:● Is Shared Hosting For You?● Difference between Dedicated Or Shared

Hosting● What About Cloud Hosting?● How hosting is related with site performance

and security?

Page 9: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

Selecting Themes● Select Reliable GPL themes● Avoid themes from untrusted source● For a important and mid-to-high traffic site

avoid themes with unused function● Get a custom theme according to your need,

maybe when you have grown enough.

Page 10: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

Use Plugin Carefully● Use plugin that you really need● Avoid Plugins from Un-trusted source● Use "P3-Profiler" ● For Mid-to-popular site consider making

your own plugins with all the functionality you need

Page 11: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

Basic Tips Of WordPress Setting● Configure Permalink.

Nobody likes example.com/?p=123

● Keep post-id in permalink.

● Example permalink structure instead of "/%category%/%postname%/"Use "/%category%/%post_id%-%postname%/

Page 12: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

Caching Plugin to use● W3 Total Cache● WP Super Cache

Page 13: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

Basic W3 Total Cache SettingUse Those Setting● Page Cache: Disk Enhanced● Minify: Disk (Default)● Database: Disabled● Object Cache: Disk● Browser Cache: Disk

Page 14: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

Advance W3 Total Cache SettingUse Those Setting● Page Cache: Disk Enhanced● Minify: Memcached● Database: Disabled● Object Cache: APC● Browser Cache: Memcached

Page 15: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

Test PerformanceUse Tool like1. http://tools.pingdom.com/fpt/2. http://www.webpagetest.org/3. https://developers.google.

com/speed/pagespeed/insights

Use same configuration. Clean cache then test and compare the result.

Page 16: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

DNS Level CacheCloudFlare rocks!

Free service will save your Bandwidth and will give you security.

Premium service will speed up your site with RocketLoader

Install CloudFlare plugin.

Page 17: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

Tweak From Server1. For larger site use nginx, you could use

LNMP server too.2. Cache database from MySQL to save db

query.3. Use Cloud with OS that leaves lower

footprint.

Page 18: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

Test & Be Bold To Deploy● Start using SVN for development version

control.● Test your setup● Use github

Page 19: Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final

QuestionsYou are free to ask anything for next __ Min.

Full Slides and Resource at asif.im/wco12