SlideShare ist ein Scribd-Unternehmen logo
1 von 45
Downloaden Sie, um offline zu lesen
Performance
                            Tweaks for
                          Shared Hosting
                                    Jon Brown
                                 j.Brown Studios
                                      @jb510
                            http://jbrownstudios.com

Saturday, October 6, 12
Tweaking WP
                           Performance in 3
                                 acts
                          Act 1 - Inside WordPress

                          Act 2 - On your Shared Server

                          Act 3 - O! your Shared Server




Saturday, October 6, 12
Prelude



Saturday, October 6, 12
What am I going to
                            cover today?

                          Performance Tweaks you can make on
                          or with most shared hosting (not that
                             they won’t help on any hosting)




Saturday, October 6, 12
What am I not going
                    to talk about today?

                          Geeky tweaks that are only suitable to
                                 VPS/Dedicated servers
                          (ie. APC, Memcached, Hyper DB, etc...)




Saturday, October 6, 12
Where to go for the
                      advanced stu!?
                             http://wordpress.tv/
                          http://www.slideshare.net/
                                 Joseph Scott
                               Barry Abrahamson
                                 Ilya Grigorik
                                Iliya Polihronov
                              and many others...

Saturday, October 6, 12
Measuring
                               Performance

                 • It’s hard to impossible to measure
                          performance on shared servers
                 • How to measure anyway...
                          http://www.webpagetest.org




Saturday, October 6, 12
Why not use your
                           browser tools?
                     • FireBug
                     • YSlow
                     • PageSpeed
                     • WebKit DevTools,
                     • etc...
Saturday, October 6, 12
WebPageTest.org




Saturday, October 6, 12
1
                              2




                          3




Saturday, October 6, 12
The challenge
                     with shared hosting
               • Con"gured to run just about any type of
                          web site
               • Generalized not optimized
               • Many performance tweaks available to
                          dedicated/VPS hosting can’t be made
               • Some performance tweaks you can make...
                          starting in WordPress


Saturday, October 6, 12
The goal of all
                          opitimization
                     • Reduce HTTP requests
                     • Reduce total data transfer
                     • Reduce CPU load
                     • Avoid Bottlenecks

Saturday, October 6, 12
Act 1

                          Tweaking
                           inside
                          WordPress

Saturday, October 6, 12
Inside WordPress

                     1. Right size/compress images
                     2. Check for 404’s
                     3. Keep your DB under control
                     4. Caching inside WordPress




Saturday, October 6, 12
Right sizing images

                     • Upload the maximum pixel size you
                          want to display, not larger
                     • Compress JPGs to 60-70% (aka 7 out of
                          12 in PhotoShop)
                     • Use WP Smush.it on already uploaded
                          images to "x your past mistakes



Saturday, October 6, 12
Checking for 404’s
                                 WebPageTest.org
                                        or
                             FireBug / Webkit Dev Tools




Saturday, October 6, 12
Keep your DB under
                          control
                 • Optimize DB
                          Plugin - WP DB Manager
                          http://wordpress.org/extend/plugins/
                          wp-dbmanager/
                 •        Tame Revisions
                          Plugin - Revision Control
                          http://wordpress.org/extend/plugins/
                          revision-control/


Saturday, October 6, 12
Caching WordPress

                   • W3 Total Cache
                   • WP Super Cache
                   • WP Minify
                   • Others...

Saturday, October 6, 12
W3TC Con"g Guides
                     •    http://c3mdigital.com/reduce-page-
                          loading-time-w3-total-cache/

                     •    http://headwaythemes.com/screencast-
                          tuesday-using-w3-total-cache-part-1/

                     •    http://www.kidnapcustomers.com/how-
                          to-make-a-website/w3-total-cache-
                          settings-wordpress-speed/



Saturday, October 6, 12
W3TC Do’s & Dont’s
                     for shared hosting
                     • Do test settings
                     • Don’t assume turning everything up to
                          11 will work well... it won’t.
                     • Do take the time to "gure out
                          minifying and combing "les it makes a
                          huge di!erence
                     • Don’t forget to prime your cache
Saturday, October 6, 12
W3TC Minify
                            Settings
                    Try Auto (Performance>General Settings)




Saturday, October 6, 12
W3TC Manual Minify
                          Use Manual (Performance>Min"y)




                                              Lists all your CSS and JS
                                              for easy manual addition
                                              and ordering




Saturday, October 6, 12
After Mini"cation




Saturday, October 6, 12
Before Mini"cation




Saturday, October 6, 12
Act 2

                          On your Shared
                          Hosting Server

Saturday, October 6, 12
On your Server

                 1. PHP Version
                 2. DB Cleanup
                 3. Cloud#are (if your lucky)




Saturday, October 6, 12
Switch to a newer
                           version of PHP

                           “PHP 5.2 to 5.3 - WordPress 15% faster”
                           ~ Dmitry Stogov http://news.php.net/
                           php.internals/36484

                           PHP 5.4 is even faster




Saturday, October 6, 12
How to change PHP
                           versions
                     • Ask your web host...
                     • In cPanel "nd PHP Con"g


                     • Sometimes set in .htaccess via
                          AddHandler


Saturday, October 6, 12
PHP 5.2 - 5.3 - 5.4




Saturday, October 6, 12
Keep Your DB under
                          control
                     • PHPMyAdmin to Optimize MySQL
                          Tables if you didn’t want to use the WP
                          DB Manager plugin to do it




Saturday, October 6, 12
CloudFlare
                          free awesomeness

                           CDN + Site Optimizer + Security




Saturday, October 6, 12
Some Host Integrating
        CloudFlare with cPanel

                     • http://www.cloud#are.com/hosting-
                           partners
                          (DreamHost, BlueHost, many more...)




Saturday, October 6, 12
Enable CloudFlare in
                      your cPanel




Saturday, October 6, 12
Saturday, October 6, 12
W3 Total Cache
            can control CloudFlare




Saturday, October 6, 12
One Caveat




Saturday, October 6, 12
Act 3

                          O! your Shared
                          Hosting Server

Saturday, October 6, 12
O! your server


                     1. CDNs (CloudFlare is Free)




Saturday, October 6, 12
CloudFlare


                          CDN + Optimizer + Security




Saturday, October 6, 12
Setup Cloud#are
                     1. Setup CloudFlare account (free)
                     2. Have CloudFlare scan your DNS
                        records (check your records)
                     3. Repoint your nameservers
                     4. Done



Saturday, October 6, 12
Why

                     • Reduces requests to your server
                     • Reduces requests to your CDN if you
                          use one
                     • Adds security
                     • Optimizer features (I use W3TC)

Saturday, October 6, 12
So where does it get
                           us?


Saturday, October 6, 12
Where we started


                                             1
                                             2




                                    3




Saturday, October 6, 12
W3TC Mini"cation


                                             1
                                             2




                                    3




Saturday, October 6, 12
W3TC + CloudFlare


                                              1
                                              2




                                    3




Saturday, October 6, 12

Weitere ähnliche Inhalte

Was ist angesagt?

Make Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speedMake Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speedPromet Source
 
Techniques to speed up your build pipeline
Techniques to speed up your build pipelineTechniques to speed up your build pipeline
Techniques to speed up your build pipelineAshish Parkhi
 
Red Dirt Ruby Conference
Red Dirt Ruby ConferenceRed Dirt Ruby Conference
Red Dirt Ruby ConferenceJohn Woodell
 
High Performance WordPress
High Performance WordPressHigh Performance WordPress
High Performance WordPressvnsavage
 
Node.js, toy or power tool?
Node.js, toy or power tool?Node.js, toy or power tool?
Node.js, toy or power tool?Ovidiu Dimulescu
 
Blazing Data With Redis (and LEGOS!)
Blazing Data With Redis (and LEGOS!)Blazing Data With Redis (and LEGOS!)
Blazing Data With Redis (and LEGOS!)Justin Carmony
 
How MongoDB is Being Used in China - Case Studies
How MongoDB is Being Used in China - Case StudiesHow MongoDB is Being Used in China - Case Studies
How MongoDB is Being Used in China - Case StudiesMongoDB
 
Plain english guide to drupal 8 criticals
Plain english guide to drupal 8 criticalsPlain english guide to drupal 8 criticals
Plain english guide to drupal 8 criticalsAngela Byron
 
Profiling php applications
Profiling php applicationsProfiling php applications
Profiling php applicationsJustin Carmony
 
cache concepts and varnish-cache
cache concepts and varnish-cachecache concepts and varnish-cache
cache concepts and varnish-cacheMarc Cortinas Val
 
High Performance on Drupal 7
High Performance on Drupal 7High Performance on Drupal 7
High Performance on Drupal 7Exove
 
Interop 2011 - Scaling Platform As A Service
Interop 2011 - Scaling Platform As A ServiceInterop 2011 - Scaling Platform As A Service
Interop 2011 - Scaling Platform As A ServicePatrick Chanezon
 
Challenges when building high profile editorial sites
Challenges when building high profile editorial sitesChallenges when building high profile editorial sites
Challenges when building high profile editorial sitesYann Malet
 
07 cookies
07 cookies07 cookies
07 cookiessnopteck
 
D installation manual
D installation manualD installation manual
D installation manualFaheem Akbar
 
Improving Drupal Performances
Improving Drupal PerformancesImproving Drupal Performances
Improving Drupal PerformancesVladimir Ilic
 
Capacity Planning For LAMP
Capacity Planning For LAMPCapacity Planning For LAMP
Capacity Planning For LAMPJohn Allspaw
 

Was ist angesagt? (20)

Make Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speedMake Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speed
 
23 Ways To Speed Up WordPress
23 Ways To Speed Up WordPress23 Ways To Speed Up WordPress
23 Ways To Speed Up WordPress
 
Techniques to speed up your build pipeline
Techniques to speed up your build pipelineTechniques to speed up your build pipeline
Techniques to speed up your build pipeline
 
Red Dirt Ruby Conference
Red Dirt Ruby ConferenceRed Dirt Ruby Conference
Red Dirt Ruby Conference
 
High Performance WordPress
High Performance WordPressHigh Performance WordPress
High Performance WordPress
 
Node.js, toy or power tool?
Node.js, toy or power tool?Node.js, toy or power tool?
Node.js, toy or power tool?
 
Scaling Django
Scaling DjangoScaling Django
Scaling Django
 
Blazing Data With Redis (and LEGOS!)
Blazing Data With Redis (and LEGOS!)Blazing Data With Redis (and LEGOS!)
Blazing Data With Redis (and LEGOS!)
 
How MongoDB is Being Used in China - Case Studies
How MongoDB is Being Used in China - Case StudiesHow MongoDB is Being Used in China - Case Studies
How MongoDB is Being Used in China - Case Studies
 
Plain english guide to drupal 8 criticals
Plain english guide to drupal 8 criticalsPlain english guide to drupal 8 criticals
Plain english guide to drupal 8 criticals
 
Profiling php applications
Profiling php applicationsProfiling php applications
Profiling php applications
 
Speed Matters
Speed MattersSpeed Matters
Speed Matters
 
cache concepts and varnish-cache
cache concepts and varnish-cachecache concepts and varnish-cache
cache concepts and varnish-cache
 
High Performance on Drupal 7
High Performance on Drupal 7High Performance on Drupal 7
High Performance on Drupal 7
 
Interop 2011 - Scaling Platform As A Service
Interop 2011 - Scaling Platform As A ServiceInterop 2011 - Scaling Platform As A Service
Interop 2011 - Scaling Platform As A Service
 
Challenges when building high profile editorial sites
Challenges when building high profile editorial sitesChallenges when building high profile editorial sites
Challenges when building high profile editorial sites
 
07 cookies
07 cookies07 cookies
07 cookies
 
D installation manual
D installation manualD installation manual
D installation manual
 
Improving Drupal Performances
Improving Drupal PerformancesImproving Drupal Performances
Improving Drupal Performances
 
Capacity Planning For LAMP
Capacity Planning For LAMPCapacity Planning For LAMP
Capacity Planning For LAMP
 

Andere mochten auch

Andere mochten auch (7)

Shock bs thao1
Shock bs thao1Shock bs thao1
Shock bs thao1
 
Pathophysiology of shock
Pathophysiology of shockPathophysiology of shock
Pathophysiology of shock
 
Diagnosis and Management of Shock
Diagnosis and Management of Shock		Diagnosis and Management of Shock
Diagnosis and Management of Shock
 
Shock
ShockShock
Shock
 
SHOCK
SHOCKSHOCK
SHOCK
 
Shock
Shock	Shock
Shock
 
Shock - Pathophysiology / Types & Management
Shock - Pathophysiology / Types & ManagementShock - Pathophysiology / Types & Management
Shock - Pathophysiology / Types & Management
 

Ähnlich wie Optimizing WordPress Performance on Shared Web Hosting

Tulsa tech fest 2010 - web speed and scalability
Tulsa tech fest 2010  - web speed and scalabilityTulsa tech fest 2010  - web speed and scalability
Tulsa tech fest 2010 - web speed and scalabilityJason Ragsdale
 
Inside the Atlassian OnDemand Private Cloud
Inside the Atlassian OnDemand Private CloudInside the Atlassian OnDemand Private Cloud
Inside the Atlassian OnDemand Private CloudAtlassian
 
Orlando DNN Usergroup Pres 12/06/11
Orlando DNN Usergroup Pres 12/06/11Orlando DNN Usergroup Pres 12/06/11
Orlando DNN Usergroup Pres 12/06/11Jess Coburn
 
Performance & Responsive Web Design
Performance & Responsive Web DesignPerformance & Responsive Web Design
Performance & Responsive Web DesignZach Leatherman
 
Performance for Product Developers
Performance for Product DevelopersPerformance for Product Developers
Performance for Product DevelopersMatthew Wilkes
 
Drupal for Project Managers, Part 3: Launching
Drupal for Project Managers, Part 3: LaunchingDrupal for Project Managers, Part 3: Launching
Drupal for Project Managers, Part 3: LaunchingAcquia
 
Pure Speed Drupal 4 Gov talk
Pure Speed Drupal 4 Gov talkPure Speed Drupal 4 Gov talk
Pure Speed Drupal 4 Gov talkBryan Ollendyke
 
[convergefl] Adaptive Images in Responsive Web Design
[convergefl] Adaptive Images in Responsive Web Design[convergefl] Adaptive Images in Responsive Web Design
[convergefl] Adaptive Images in Responsive Web DesignChristopher Schmitt
 
Upgrades and migrations
Upgrades and migrationsUpgrades and migrations
Upgrades and migrationsDavid Lanier
 
HH.JS - State of the Automation
HH.JS - State of the AutomationHH.JS - State of the Automation
HH.JS - State of the AutomationAdam Christian
 
GitHub Notable OSS Project
GitHub  Notable OSS ProjectGitHub  Notable OSS Project
GitHub Notable OSS Projectroumia
 
Coscup 2013 : Continuous Integration on top of hadoop
Coscup 2013 : Continuous Integration on top of hadoopCoscup 2013 : Continuous Integration on top of hadoop
Coscup 2013 : Continuous Integration on top of hadoopWisely chen
 
High Performance Drupal
High Performance DrupalHigh Performance Drupal
High Performance DrupalChapter Three
 
NDH2k12 Cloud Computing Security
NDH2k12 Cloud Computing SecurityNDH2k12 Cloud Computing Security
NDH2k12 Cloud Computing SecurityMatthieu Bouthors
 
Let's speed it up a bit (AmsterdamPHP)
Let's speed it up a bit (AmsterdamPHP)Let's speed it up a bit (AmsterdamPHP)
Let's speed it up a bit (AmsterdamPHP)pascaldevink
 

Ähnlich wie Optimizing WordPress Performance on Shared Web Hosting (20)

Tulsa tech fest 2010 - web speed and scalability
Tulsa tech fest 2010  - web speed and scalabilityTulsa tech fest 2010  - web speed and scalability
Tulsa tech fest 2010 - web speed and scalability
 
Inside the Atlassian OnDemand Private Cloud
Inside the Atlassian OnDemand Private CloudInside the Atlassian OnDemand Private Cloud
Inside the Atlassian OnDemand Private Cloud
 
Charles
CharlesCharles
Charles
 
Orlando DNN Usergroup Pres 12/06/11
Orlando DNN Usergroup Pres 12/06/11Orlando DNN Usergroup Pres 12/06/11
Orlando DNN Usergroup Pres 12/06/11
 
Performance & Responsive Web Design
Performance & Responsive Web DesignPerformance & Responsive Web Design
Performance & Responsive Web Design
 
Performance for Product Developers
Performance for Product DevelopersPerformance for Product Developers
Performance for Product Developers
 
Drupal for Project Managers, Part 3: Launching
Drupal for Project Managers, Part 3: LaunchingDrupal for Project Managers, Part 3: Launching
Drupal for Project Managers, Part 3: Launching
 
Pure Speed Drupal 4 Gov talk
Pure Speed Drupal 4 Gov talkPure Speed Drupal 4 Gov talk
Pure Speed Drupal 4 Gov talk
 
[convergefl] Adaptive Images in Responsive Web Design
[convergefl] Adaptive Images in Responsive Web Design[convergefl] Adaptive Images in Responsive Web Design
[convergefl] Adaptive Images in Responsive Web Design
 
Upgrades and migrations
Upgrades and migrationsUpgrades and migrations
Upgrades and migrations
 
Cassandra at scale
Cassandra at scaleCassandra at scale
Cassandra at scale
 
NATO IST Symposium 2013
NATO IST Symposium 2013NATO IST Symposium 2013
NATO IST Symposium 2013
 
HH.JS - State of the Automation
HH.JS - State of the AutomationHH.JS - State of the Automation
HH.JS - State of the Automation
 
GitHub Notable OSS Project
GitHub  Notable OSS ProjectGitHub  Notable OSS Project
GitHub Notable OSS Project
 
Coscup 2013 : Continuous Integration on top of hadoop
Coscup 2013 : Continuous Integration on top of hadoopCoscup 2013 : Continuous Integration on top of hadoop
Coscup 2013 : Continuous Integration on top of hadoop
 
Qcon talk
Qcon talkQcon talk
Qcon talk
 
High Performance Drupal
High Performance DrupalHigh Performance Drupal
High Performance Drupal
 
NDH2k12 Cloud Computing Security
NDH2k12 Cloud Computing SecurityNDH2k12 Cloud Computing Security
NDH2k12 Cloud Computing Security
 
Scalability
ScalabilityScalability
Scalability
 
Let's speed it up a bit (AmsterdamPHP)
Let's speed it up a bit (AmsterdamPHP)Let's speed it up a bit (AmsterdamPHP)
Let's speed it up a bit (AmsterdamPHP)
 

Kürzlich hochgeladen

How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 

Kürzlich hochgeladen (20)

How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 

Optimizing WordPress Performance on Shared Web Hosting

  • 1. Performance Tweaks for Shared Hosting Jon Brown j.Brown Studios @jb510 http://jbrownstudios.com Saturday, October 6, 12
  • 2. Tweaking WP Performance in 3 acts Act 1 - Inside WordPress Act 2 - On your Shared Server Act 3 - O! your Shared Server Saturday, October 6, 12
  • 4. What am I going to cover today? Performance Tweaks you can make on or with most shared hosting (not that they won’t help on any hosting) Saturday, October 6, 12
  • 5. What am I not going to talk about today? Geeky tweaks that are only suitable to VPS/Dedicated servers (ie. APC, Memcached, Hyper DB, etc...) Saturday, October 6, 12
  • 6. Where to go for the advanced stu!? http://wordpress.tv/ http://www.slideshare.net/ Joseph Scott Barry Abrahamson Ilya Grigorik Iliya Polihronov and many others... Saturday, October 6, 12
  • 7. Measuring Performance • It’s hard to impossible to measure performance on shared servers • How to measure anyway... http://www.webpagetest.org Saturday, October 6, 12
  • 8. Why not use your browser tools? • FireBug • YSlow • PageSpeed • WebKit DevTools, • etc... Saturday, October 6, 12
  • 10. 1 2 3 Saturday, October 6, 12
  • 11. The challenge with shared hosting • Con"gured to run just about any type of web site • Generalized not optimized • Many performance tweaks available to dedicated/VPS hosting can’t be made • Some performance tweaks you can make... starting in WordPress Saturday, October 6, 12
  • 12. The goal of all opitimization • Reduce HTTP requests • Reduce total data transfer • Reduce CPU load • Avoid Bottlenecks Saturday, October 6, 12
  • 13. Act 1 Tweaking inside WordPress Saturday, October 6, 12
  • 14. Inside WordPress 1. Right size/compress images 2. Check for 404’s 3. Keep your DB under control 4. Caching inside WordPress Saturday, October 6, 12
  • 15. Right sizing images • Upload the maximum pixel size you want to display, not larger • Compress JPGs to 60-70% (aka 7 out of 12 in PhotoShop) • Use WP Smush.it on already uploaded images to "x your past mistakes Saturday, October 6, 12
  • 16. Checking for 404’s WebPageTest.org or FireBug / Webkit Dev Tools Saturday, October 6, 12
  • 17. Keep your DB under control • Optimize DB Plugin - WP DB Manager http://wordpress.org/extend/plugins/ wp-dbmanager/ • Tame Revisions Plugin - Revision Control http://wordpress.org/extend/plugins/ revision-control/ Saturday, October 6, 12
  • 18. Caching WordPress • W3 Total Cache • WP Super Cache • WP Minify • Others... Saturday, October 6, 12
  • 19. W3TC Con"g Guides • http://c3mdigital.com/reduce-page- loading-time-w3-total-cache/ • http://headwaythemes.com/screencast- tuesday-using-w3-total-cache-part-1/ • http://www.kidnapcustomers.com/how- to-make-a-website/w3-total-cache- settings-wordpress-speed/ Saturday, October 6, 12
  • 20. W3TC Do’s & Dont’s for shared hosting • Do test settings • Don’t assume turning everything up to 11 will work well... it won’t. • Do take the time to "gure out minifying and combing "les it makes a huge di!erence • Don’t forget to prime your cache Saturday, October 6, 12
  • 21. W3TC Minify Settings Try Auto (Performance>General Settings) Saturday, October 6, 12
  • 22. W3TC Manual Minify Use Manual (Performance>Min"y) Lists all your CSS and JS for easy manual addition and ordering Saturday, October 6, 12
  • 25. Act 2 On your Shared Hosting Server Saturday, October 6, 12
  • 26. On your Server 1. PHP Version 2. DB Cleanup 3. Cloud#are (if your lucky) Saturday, October 6, 12
  • 27. Switch to a newer version of PHP “PHP 5.2 to 5.3 - WordPress 15% faster” ~ Dmitry Stogov http://news.php.net/ php.internals/36484 PHP 5.4 is even faster Saturday, October 6, 12
  • 28. How to change PHP versions • Ask your web host... • In cPanel "nd PHP Con"g • Sometimes set in .htaccess via AddHandler Saturday, October 6, 12
  • 29. PHP 5.2 - 5.3 - 5.4 Saturday, October 6, 12
  • 30. Keep Your DB under control • PHPMyAdmin to Optimize MySQL Tables if you didn’t want to use the WP DB Manager plugin to do it Saturday, October 6, 12
  • 31. CloudFlare free awesomeness CDN + Site Optimizer + Security Saturday, October 6, 12
  • 32. Some Host Integrating CloudFlare with cPanel • http://www.cloud#are.com/hosting- partners (DreamHost, BlueHost, many more...) Saturday, October 6, 12
  • 33. Enable CloudFlare in your cPanel Saturday, October 6, 12
  • 35. W3 Total Cache can control CloudFlare Saturday, October 6, 12
  • 37. Act 3 O! your Shared Hosting Server Saturday, October 6, 12
  • 38. O! your server 1. CDNs (CloudFlare is Free) Saturday, October 6, 12
  • 39. CloudFlare CDN + Optimizer + Security Saturday, October 6, 12
  • 40. Setup Cloud#are 1. Setup CloudFlare account (free) 2. Have CloudFlare scan your DNS records (check your records) 3. Repoint your nameservers 4. Done Saturday, October 6, 12
  • 41. Why • Reduces requests to your server • Reduces requests to your CDN if you use one • Adds security • Optimizer features (I use W3TC) Saturday, October 6, 12
  • 42. So where does it get us? Saturday, October 6, 12
  • 43. Where we started 1 2 3 Saturday, October 6, 12
  • 44. W3TC Mini"cation 1 2 3 Saturday, October 6, 12
  • 45. W3TC + CloudFlare 1 2 3 Saturday, October 6, 12

Hinweis der Redaktion

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n
  33. \n
  34. \n
  35. \n
  36. \n
  37. \n
  38. \n
  39. \n
  40. \n
  41. \n
  42. \n
  43. \n
  44. \n
  45. \n