Wordpress SEO Basics Wordcamp Las Vegas 2009. Wordpress 2.7.
Scaling Dynamic WordPress Sites - WordCamp US 2015
-
Upload
aaron-edwards -
Category
Technology
-
view
5.819 -
download
0
Transcript of Scaling Dynamic WordPress Sites - WordCamp US 2015
![Page 1: Scaling Dynamic WordPress Sites - WordCamp US 2015](https://reader031.fdocuments.net/reader031/viewer/2022030305/58716ffe1a28ab58758b74d3/html5/thumbnails/1.jpg)
ScalingDynamic
WordPressWebsites
WordCampUSDec.5th,2015
![Page 2: Scaling Dynamic WordPress Sites - WordCamp US 2015](https://reader031.fdocuments.net/reader031/viewer/2022030305/58716ffe1a28ab58758b74d3/html5/thumbnails/2.jpg)
WhoamI?
AaronEdwards
@UglyRobotDev
https://profiles.wordpress.org/uglyrobot
,,andCAMPUSPRESS
• CTOofIncsub
• WordPressdevelopersince2.6,specializinginMultisite
• Creatoroflotsofpluginsandservices
![Page 3: Scaling Dynamic WordPress Sites - WordCamp US 2015](https://reader031.fdocuments.net/reader031/viewer/2022030305/58716ffe1a28ab58758b74d3/html5/thumbnails/3.jpg)
Onesizedoesn’tfitall• Mostcachingpluginsandperformancetalks
focusonFullPageCaching
• Doesnothingfordynamicwebsites!
MembershipSites
WordPressMultisite
![Page 4: Scaling Dynamic WordPress Sites - WordCamp US 2015](https://reader031.fdocuments.net/reader031/viewer/2022030305/58716ffe1a28ab58758b74d3/html5/thumbnails/4.jpg)
PageGenerationTime(ms)
0 100 200 300 400 500 600
29ms200ms300ms
PHP Database WebExternal
GooglePagespeedrecommends200msmax!
PageGenerationTime
![Page 5: Scaling Dynamic WordPress Sites - WordCamp US 2015](https://reader031.fdocuments.net/reader031/viewer/2022030305/58716ffe1a28ab58758b74d3/html5/thumbnails/5.jpg)
DatabaseOptimization• Limitandoptimizequeries
• https://wordpress.org/plugins/query-monitor/
• OptimizeMySQLconfig
• Querycache
• MySQLTuner
• Converthigh-writetablestoInnoDB
• SwitchtoMariaDB(10-20%)orAWSAurora(2-3x)
orkeepthequeriesfromevergettingtoyourDB…
![Page 6: Scaling Dynamic WordPress Sites - WordCamp US 2015](https://reader031.fdocuments.net/reader031/viewer/2022030305/58716ffe1a28ab58758b74d3/html5/thumbnails/6.jpg)
Disk
Memory
WordPressObjectCache
![Page 7: Scaling Dynamic WordPress Sites - WordCamp US 2015](https://reader031.fdocuments.net/reader031/viewer/2022030305/58716ffe1a28ab58758b74d3/html5/thumbnails/7.jpg)
ObjectCachingPlugins
• Memcached-Recommended
• http://wordpress.org/extend/plugins/memcached/orW3TC
• Redis-Recommended
• https://wordpress.org/plugins/redis-cache/
• APC
• https://wordpress.org/plugins/apc/orW3TC
• FileBased-notrecommended
wp-content/object-cache.php
![Page 8: Scaling Dynamic WordPress Sites - WordCamp US 2015](https://reader031.fdocuments.net/reader031/viewer/2022030305/58716ffe1a28ab58758b74d3/html5/thumbnails/8.jpg)
PHPOptimization:CodeProfiling
• Beginners:P3(PluginPerformanceProfiler)
• https://wordpress.org/plugins/p3-profiler/
• Advanced:Xdebug+(web/win/k)cachegrind
• EasiestwayistheVVVlocaldevelopment
environment
• OnProduction:
![Page 9: Scaling Dynamic WordPress Sites - WordCamp US 2015](https://reader031.fdocuments.net/reader031/viewer/2022030305/58716ffe1a28ab58758b74d3/html5/thumbnails/9.jpg)
PHPOptimization:WorstOffenders1. Unnecessary/unoptimizedqueries
1. Usewp_cache_*functions(objectcacherequired)
2. Per-pageloaddatabasewrites(stats,redirection,logging
plugins)
2. Watchoutforremoterequests!
1. Uselowtimeouts
2. Cacheaslongaspossible,notintransients
3. Flushingrewriterulespoorly
4. Directfilesystemaccess
![Page 10: Scaling Dynamic WordPress Sites - WordCamp US 2015](https://reader031.fdocuments.net/reader031/viewer/2022030305/58716ffe1a28ab58758b74d3/html5/thumbnails/10.jpg)
SpeedingUpPHP• UseNGINXinsteadofApache
• InMultisiteuseaCDNorVarnish
• MoveSessionstoragetoRAM
• UpgradePHPto5.5or5.6
• EnableandconfigureOPcache
• Makesurecodebasefitsincachesize:
• opcache.memory_consumption
• opcache.max_accelerated_files
• Increaserevalidationfrequency:
• opcache.revalidate_freq
![Page 11: Scaling Dynamic WordPress Sites - WordCamp US 2015](https://reader031.fdocuments.net/reader031/viewer/2022030305/58716ffe1a28ab58758b74d3/html5/thumbnails/11.jpg)
SwitchtoHHVMorPHP7!
http://talks.php.net/fluent15#/wpbench
![Page 12: Scaling Dynamic WordPress Sites - WordCamp US 2015](https://reader031.fdocuments.net/reader031/viewer/2022030305/58716ffe1a28ab58758b74d3/html5/thumbnails/12.jpg)
AppMonitoringatScaleStatsD+StatsD
WordPressClient+
Grafana
https://github.com/etsy/statsd
https://wordpress.org/plugins/statsd/
http://grafana.org/
• Liveapplicationprofiling
![Page 13: Scaling Dynamic WordPress Sites - WordCamp US 2015](https://reader031.fdocuments.net/reader031/viewer/2022030305/58716ffe1a28ab58758b74d3/html5/thumbnails/13.jpg)
Tootechnicalforyou?• HireanexperiencedSysAdmin
• Useacutting-edgemanagedWordPresshost
![Page 14: Scaling Dynamic WordPress Sites - WordCamp US 2015](https://reader031.fdocuments.net/reader031/viewer/2022030305/58716ffe1a28ab58758b74d3/html5/thumbnails/14.jpg)
Thankyou#WCUS!@UglyRobotDev
Drag&dropsitebuilding,100+WordPresspluginsand24/7expertWordPresssupport