Upload
mark-brown
View
1.999
Download
1
Tags:
Embed Size (px)
DESCRIPTION
Session from Web 2.0 Expo in San Francisco on March 30, 2011.
Citation preview
How to massively scale WordPress
Mark Brown Senior Product Manager Microsoft Corporation [email protected] @markjbrown
Speed = Dollars
Frederick Townes CTO Mashable.com [email protected] @w3edge
Why Performance Matters
Google: +500 ms -> -20% traffic loss
Yahoo: +400 ms -> -5-9% full-page traffic loss (visitor left before the page finished loading)
Amazon: +100 ms (speed decrease) -> -1% sales loss
What should I do?
Web performance starts with the app
Within the app are several types of caching opportunities
Don’t forget about the browser cache
PHP & WINDOWS + IIS
+
IIS 7.X
Default min install
Modular architecture
Streamlined processing pipeline
File-based config
Authorization
Resolve Cache
Execute Handler
Update Cache
Authentication
Send Response
FAST-CGI
Handles requests from app pool
Automatic Performance tuning
• Memory Usage
• CPU Load
• Context Switches
WINCACHE
Boost speed with no code changes
Bytecode Cache
File Cache
Path Cache
Session Cache
User Data Cache
WinCache Statistics
URL REWRITE
Pretty Permalinks for WordPress
Rewrite:
Request headers and Server variables
HTTP Response
Outbound URL’s
Inside specific html tags in response
Import Apache mod_rewrite
http://mycompany.com/?cat_id=3&prod_id=2346 http://mycompany.com/products/widget
PHP 5.3
Updated code base
Native Win32 instead of POSIX
Latest compiler VC9
Use Non-Thread-Safe builds for better performance.
PHP Manager
Register 2x PHP versions with IIS
Easy checking of phpinfo()
Configure PHP error reporting
Manage directives & extensions
WORDPRESS + W3 TOTAL CACHE
+
W3 Total Cache
Optimize Speed and UX for WordPress
Page
Browser
Database
Object
Minify
CDN
W3 Benefits
> 10x performance
“Instant” second page views
Reduced page load time
Optimized progressive render
Improved web server performance
Up to 80% Bandwidth savings
The “Tons of Logos” Slide
W3 Cache is AWESOME
DEMO
WEBMATRIX
New to WordPress or would like to use Windows?
Fastest Way to create a new WordPress site on Windows
FREE!!!
WEBMATRIX
• Customize
– Light-weight editor
• HTML, CSS, PHP, JS
– Database editor
– Monitor HTTP Requests
– Tune and optimize for Search Engines
WEBMATRIX
Publish
FTP or sFTP
Web Deploy
One Click deploy
Includes Database
Web Hosting Gallery
Great deals on hosting
Know how to do WordPress on Windows
Resources
PHP on Windows
http://web.ms/php
WordPress for Windows + IIS with WebMatrix
http://web.ms/wordpress
W3 Total Cache Home Page
http://wordpress.org/extend/plugins/w3-total-cache/
Dev Version with Windows + IIS Support http://downloads.wordpress.org/plugin/w3-total-cache.zip
QUESTIONS?