WordPress Server
Optimizations Даниел Канчев WordPress Sofia User Group Февруари 2014
Даниел Канчев @dvkanchev Performance Guru @SiteGround Security Freak Server Migrations Specialist VIP Customer Management FOSS Addict Addicted to extreme sports
Защо трябва да оптимизирате? По-доволни потребители —>> $$$ По-добри позиции в Google/Yandex По-ниски разходи за web hosting
Направете план
Основни моменти в оптимизацията Web server setup - Apache or nginx PHP setup - PHP-FPM, FastCGI, APC MySQL setup Object caching - Memcached/Redis Full page (HTTP) caching - Varnish, nginx
MySQL Използвайте Percona - http://www.percona.com/ Използвайте tmpfs за MySQL tmpdir - http://goo.gl/ UOTjlW MySQLtuner.pl - http://mysqltuner.pl
PHP PHP handlers - DSO, SuPHP/SuExec, FastCGI/PHP-FPM PHP modules info Opcode caching, object caching - APC, xCache, Memcached, Redis
WordPress Interaction with Your Database First request goes to the database server
Object Caching First request goes to the database server Objects are also stored in Memcached
Object Caching All consecutive requests are forwarded to the Memcached server
How PHP Works Scanning Lexing Parsing Compilation Opcode Execution
PHP Opcode Caching ! Opcode Execution
Reverse Proxy Servers
Reverse Proxy Servers
Reverse Proxy Servers
Reverse Proxy Servers
nginx config which works http://polihronov.wordpress.com/
Varnish config # Never cache administrator if (req.url ~ "wp-(login|admin)" || req.url ~ "preview=true") { return (pass); } if (req.http.Cookie ~ "(^|;s*)(wpSGCacheBypass=1)(;|$)") { return(pass); } if (req.http.Cookie ~ "(^|;s*)wordpress_logged_in_([^;]+)(;|$)") { return(pass); } if (req.http.Cookie ~ "(^|;s*)(woocommerce_items_in_cart=1)(;|$)") { return(pass); } if (req.http.Cookie ~ "comment_author") { return(pass); } ! include "common.vcl"; ! return (lookup);
To CDN or not to CDN ?
Изводи Оптимизацията е процес, а не събитие. Винаги тествайте. Пазете информацията от всички тестове. Информирайте се от големите акули.
Полезни линкове http://highscalability.com/ http://www.mysqlperformanceblog.com/ http://wiki.nginx.org/WordPress http://velocityconf.com/
Bash Мерси! @dvkanchev / daniel.k@siteground.com
Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...
In this presentation we will describe our experience developing with a highly dyna...
Presentation to the LITA Forum 7th November 2014 Albuquerque, NM
Un recorrido por los cambios que nos generará el wearabletech en el futuro
Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...
Microsoft finally joins the smartwatch and fitness tracker game by introducing the...
Home; Documents; Eng Synergy User Group Presentation 18052010; Download. of 47 ×
Read more
ASIC emulation methodology presentation to the UK Synopsys user group conference.
Read more
First class compliant provisioning in SAP delivered at Royal Mail Ian Daniel November 2012 2 Royal Mail’s People Systems Programme (PSP) • PSP ...
Read more
1.Intermountain User Group Disclaimer: Nothing that we are sharing is intended as legally binding or prescrip7ve advice.
Read more
×Close Share Effective Reporting SAP Australian User Group Presentation. Embed ...
Read more
Sofia Lejon Crottet, ... Current Sample Presentation Data . ABO/Rh: O, D+ C+ c+ E ... It is important to remember that blood group antigens Ch, Rg, Yk a, ...
Read more
Working Groups in Sofia I 3 Working Groups / 1/2 hour News ... Please prepare a short presentation of the results to ... user Created Date: 7/5 ...
Read more
... Sofia University ... The aim is to balance the posts between links to BG WP articles and "from the ... Wikimedians of Bulgaria User Group recognition ...
Read more
Telerik Included in 3 Gartner Magic Quadrants for 2015. Enterprise Application Platform as a Service; Mobile Application Development Platforms; Web Content ...
Read more
Add a comment