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

Preview:

DESCRIPTION

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

Citation preview

Caching and Optimization

How to Speed Up Your WordPress Website

WordCamp Orlando 2012

Who Am I?● M Asif Rahman

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

● Company: ARCom.com.bd

● Blog: Asif.im

● @Asif2BD

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

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

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.

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

What is Optimization?Image Credit: WPWebHost.com

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?

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.

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

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%/

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

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

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

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.

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.

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.

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

control.● Test your setup● Use github

QuestionsYou are free to ask anything for next __ Min.

Full Slides and Resource at asif.im/wco12