Ma g e n t oCRO|Ma g e n t oDe v www. T h e Co mme r c e S h o p . c o m
.
AGUI DEFORECOMMERCESI TEOWNERS
Magent o2 Opt i mi z a t i onGui de Pr ovenMet hodol ogyForFas t erOr derPr oces s i ngAnd PageLoadSpeedForYourMagent o2St or e.
BUSI NESS SOLUTI ON PARTNER
( 404)5476474 3400Peacht r eeRoad, NESui t e939, At l ant a, GA30326. hel l o@t hecommer ces hop. com
01
Cont ent s ent s 01 Cont
02 Execut i veSummar y 03 TheMagent o2Ar chi t ect ur e 04 Under s t andHow TheFourDi f f er entAr chi t ect ur alLayer sMakes Magent o2Bet t er i mi z i ngMagent o2ForEnhancedPer f or mance 05 Opt eFl atCat al og 05. 1 Enabl eMySQL 05. 2 Configur eCSSAndJSOpt i mi z at i on 05. 3 Enabl eVar ni s hCacheI ns t eadOfTheBui l tI nFul l PageCache 05. 4 Enabl entDel i ver yNet wor k 05. 5 SetUpACont o2Si t eUpdat ed 05. 6 KeepYourMagent
us i on 06 Concl er ences 07 Ref
heCommer ceShop2017.Al lr i ght sr es er ved. © T Al lr i ght sr es er ved.Nopar toft hi spubl i cat i ont extmaybeupl oadedorpos t edonl i newi t houtt hepr i orwr i t t enper mi s s i onoft hepubl i s her . Forper mi s s i onr eques t s ,wr i t et ot hepubl i s her ,addr es s ed“At t ent i on:Per mi s s i onsReques t , ”t ohel l o@t hecommer ces hop. com
.
Magent o2Opt i mi z at i onMet hodol ogyForFas t erOr derPr oces s i ngAndPageLoadSpeed |TheCommer ceShop
Ex ecut i veSummar y
3
TheMagent oeCommer cepl at f or m power sabout26%oft ot aleCommer ces t or es , maki ngi toneoft hel ar ges tpl at f or mspr ef er r edbyonl i nes t or eowner s . Wi t ht he evol ut i onoft heeCommer ceecos ys t em, t heneedf oranenhancedf eat ur es et pus hedt heMagent ot eam t odevel opMagent o2. I t ' soneoft hemos tpr omi s i ng eCommer cepl at f or mswi t ht hebes tbackendt hatpr omi s esf as t ers et upand bet t eronl i nes hoppi ngexper i ence. Thi swhi t epaperai mst oopt i mi z eands cal e yourMagent o2s t or es et up.
TheMagent o2Ar chi t ect ur e TheMagent oeCommer cepl at f or mi sPHPbas ed. TheZendFr amewor kandOOP ( Obj ectOr i ent edPr ogr ammi ng)r oot sal l ow yout ocompl et el ycus t omi z eyour ent i r eeCommer ces t or et opr ovi deauni ques hoppi ngexper i encet oyourcus t omer s . Thebi gges tadvant ageoft hi sappr oachi st hati thasani ndus t r ys t andar d codi ngs t r uct ur eal ongwi t hi ndependentl ayer sofbus i nes sl ogi ct opr ovi deany neces s ar ywebf unct i onal i t y. Bas i cal l y, t heMa-
r out est hem appr opr i at el y, ens ur i ng s ecur i t y.
3r dPar t y Li br ar i es Zend, Symf ony
Dependson/Cal l s
PSR2
PSR3
PSR4
Devel oper Dependenci es Magent oLi b ( LESS, JS, et c)
HTTPr eques t sand
Magent o PHPcode
modul est hr ough
I ncl udes
l i br ar yacces s est he
PSR1
s houl dbehave. The
Layout s
Cont r ol l er s
CSS
LESS
Pr es ent at i onLayer Magent oUI Li b
Templ at es
>
mer cewebs i t e
PSR0
onhow youreCom-
PHP/ ens i ons St andar ds PHPext
hass t r uct ur edr ul e
Ser vi ceCons umer s
>
gent of r amewor k
WebUs er s
JQUERY Bl ocks Requi r eJS
Ser vi ce i nt er f ace
Ser vi ceCont r act s
WebAPI Endpoi nt s
Dat a i nt er f aces
Model s
Res our ce Model s
MySQL
Sour ce:devdocs . magent o. com
Ser vi ceLayer
Domai nLayer
Per s i s t enceLayer
.
Magent o2Opt i mi z at i onMet hodol ogyForFas t erOr derPr oces s i ngAndPageLoadSpeed |TheCommer ceShop
Under s t andHowTheFour Di f f er entAr chi t ect ur al Layer s MakesMagent o2Bet t er
4
Ther obus tandor gani z edar chi t ect ur ei st hebackbonef ormaki ng Magent o2exi bl eandf as t . The l ayer sar epl aceds t r at egi cal l y al ongwi t ht her i ghtcomponent st o s ecur eandpr oces sr eques t sf as t er . Thepr es ent at i onl ayerhel psi nt egr at evar i oust ool st hr oughAPIr eques t s .
Magent o2 Per f or mance Met r i cs I fyouhavecur r ent l yupgr aded yourMagent o1s t or eormi gr at ed f r om anyot hereCommer cepl at f or mt oaMagent o2, youwi l lwi t -
51%f as t er checkoutt i mes
Abi l i t yt opr oces s 39%mor eor der s perhour
Al mos t66%i ncr eas ei n t headdt ocar ts er ver r es pons et i me
-
-
-
51% 39% 66%
b
nes st hef ol l owi ngchanges :
I mpr oveds er ver r es pons et i mef orcat al og br ows i ng
.
Magent o2Opt i mi z at i onMet hodol ogyForFas t erOr derPr oces s i ngAndPageLoadSpeed |TheCommer ceShop
Opt i mi z i ngMagent o2For EnhancedPer f or mance
5
Wi t hMagent o2t aki ngovert heeCommer cewor l dbyas t or m, wewant edt ocr eat e as eaml es ss hoppi ngexper i encef ors hopper sandboos tt heper f or manceoft he Magent o2eCommer ces t or et ohandl emor eor der sandt r af fic. Wehavecr eat eda l i s toft hi ngst odot omakei teas i erf oryou.
Enabl eFl atCat al og Speedupyourpr oductcol l ect i onbymanagi ngt hecat al ogdat at hr ough manyt abl esus i ngt heEnt i t yAt t r i but eVal ue( EAV) . Whent heflatcat al ogi s enabl ed, t het abl esar eaddedwhent her ei saneedf orneces s ar ydat a r el at edt opr oductorcat egor y.
.
.. .
1. Logi nt ot heMagent obackendpanel > >
> >
2. Ont heAdmi npanel , cl i ckonSt or es
3. Undert heSet t i ngss ect i on, s el ectConfigur at i on
Cat al ogt oent ert heSt or ef r onts ect i on
> >
> >
4. Ont hel ef tpanel , choos e
5. Choos eYesi nUs eFl atCat al ogCat egor yfiel d
.
Magent o2Opt i mi z at i onMet hodol ogyForFas t erOr derPr oces s i ngAndPageLoadSpeed |TheCommer ceShop
ConďŹ gur eMySQL Thi shel psi nor gani z i ngyourMySQLdat abas et of et cheCommer cei nf or mat i onf as t er .Tol oadas i ngl eMagent opage, as er i esofdat abas equer i es
get sengaged. Youcans t ar tpr oces s i ngor der sf as t erbyopt i mi z i ngyourdat abas es t r uct ur e.
1 2 query_cache_type = 1 3 query_cache_size = 32M 4 query_cache_limit = 2M 5
1 2 $ musql -u mysqluser -p magento_database_name 3 $ mysql> SHOW VARIABLES; 4
1 2 php_value memory_limit 128M 3
Enabl eCSSAndJSOpt i mi z at i on CSSandJSar et wooft hemos ti mpor t antel ement st hatf r ameyour f r ont ends t r uct ur e. Unf or t unat el y, t heyar et hebi gges tr eas onyoureCommer cewebs i t es l owsdown.
6
.
Magent o2Opt i mi z at i onMet hodol ogyForFas t erOr derPr oces s i ngAndPageLoadSpeed |TheCommer ceShop
Thebes twayt os peedupyourMagent o2s t or esi sbyopt i mi z i ngCSSand JS.
.
.
.
.
.
.
> >
> >
> >
> >
> >
> >
7
.
Magent o2Opt i mi z at i onMet hodol ogyForFas t erOr derPr oces s i ngAndPageLoadSpeed |TheCommer ceShop
Enabl eVar ni s hCacheI ns t eadOfThe Bui l tI nFul l PageCache Cachi ngi st hepr oces sofboos t i ngpagel oads peedbys t or i ngi nf or mat i on whent hecus t omerfir s tl oadst hewebs i t e. Magent o2hasabui l ti ncachi ng mechani s mt hatwor ksgr eat , butVar ni s hi sas uper i oropt i onasi tcaches s t at i cfil esanddoes n' ts l ow downt hedat abas eorfil es ys t em r ead/ wr i t e f unct i onal i t y.
. > >
.. . > >
> >
> >
Fi el d
Des cr i pt i on
Acces sl i s t
Ent ert hef ul l yqual i fi edhos tname, I Paddr es s , orCl as s l es sI nt er Domai nRout i ng( CI DR) not at i onI Paddr es sr angef orwhi cht oi nval i dat econt ent . Mor ei nf or mat i on
Backendhos t
Backendpor t
. > >
Or i gi ns er ver ' sl i s t enpor t .
I magecour t esy:Magent oDevdocs
8
.
Magent o2Opt i mi z at i onMet hodol ogyForFas t erOr derPr oces s i ngAndPageLoadSpeed |TheCommer ceShop
8. I t ' sr ecommendedyous ett heval ueofaclpur geast he I Paddr es soft heVar ni s hhos twhenyouopen def aul t . vcl.
Forexampl e, aclpur ge { " l ocal hos t " ;}
1.s er vi cevar ni s hr es t ar t
9. Now, r es t ar tVar ni s h.
2.s er vi ceht t pdr es t ar t
Thi senabl est hecacheabl eas s et s , andar es avedandl oadedi nt hecl i ent ' sbr ows ert hr oughVar ni s h.
SetUpACont entDel i ver yNet wor k ACont entDel i ver yNet wor k( CDN)i sadi s t r i but eds er vert hatdel i ver st he s i t econt entt os hopper sbas edont hei rgeogr aphi calr egi on. Bas i cal l y, t he webpagesl oadf as t erast hemul t i pl es er ver sbr eakdownt hel oadbet ween t hem. Choos i ngYourPer f ectCDN I t smandat or yyouchoos et heper f ectCDNt hathass uppor t edgeogr aphi cal pr oxi mi t yt ogetmaxi mum mi l eage. OurMagent oexper t scanal s ohel pyou ďŹ ndt her i ghtCDNpr ovi der st omaxi mi z es i t el oadi ngs peed.
. > >
Ent ert heht t psURLt opr ovi deaf as t ers hoppi ngexper i encef oryoureCommer cecus t omer s .
9
.
Magent o2Opt i mi z at i onMet hodol ogyForFas t erOr derPr oces s i ngAndPageLoadSpeed |TheCommer ceShop
Per f or m ADat abas eCl eanUp Magent o2f unct i onst hr oughvar i oust abl esandwhencodef unct i onsr un f r equent l yt of et chi nf or mat i onr egar di ngpr oduct s , t her ear epl ent yofl ogs
t hatgetcr eat edi nt hepr oces s . Fr equentdat abas el ogcl eanupi sneededt o
. . .
cl eart hedi s ks paceandf ol ders i z e, andmai nt ai nopt i malper f or mance. > >
> >
> >
KeepYourMagent o2Si t eUpdat ed I t ' ses s ent i alyourMagent o2webs i t ei supdat edatal lt i mes . TheMagent o2 andmodul eupdat escont ai nes s ent i alfixesneededt oopt i mi z evar i ous f unct i onal i t yofyoureCommer cewebs i t e, apar tf r om s ecur i t yandbugfixes .
10
.
Magent o2Opt i mi z at i onMet hodol ogyForFas t erOr derPr oces s i ngAndPageLoadSpeed |TheCommer ceShop
Concl us i on
11
Thes eMagent o2opt i mi z at i ont echni quesai mt oi mpr oveyoureCommer cewebs i t el oadi ngs peedbyupt o2s econds . Thi si ss i gni ďŹ cant , asus er st endt ol eave s i t est hatl oads l owert han3s econds . Googl es ear chr es ul t sal s of avorf as t erl oadi ngs i t es . Bui l dt heper f ectopt i mi z edonl i nes hoppi ngexper i enceneededt o engagebet t erwi t hyours hopper s . I fyouar el ooki ngf orcus t om eCommer cedevel opments er vi cet oi mpr ovet he cus t omer ' sons i t eexper i ence, ourcer t i ďŹ edMagent odevel oper scanhel p. Tal kt o usi fyouwantt obui l das eaml es ss hoppi ngexper i encef orcus t omer swi t hper f ect navi gat i on, eas ypr oductdi s cover yf eat ur eal ongwi t has moot hcheckoutpr oces s .
Ref er ences
3400Peacht r eeRoad, NESui t e939, At l ant a, GA30326 Phone: ( 404)5476474 Emai l : hel l o@t hecommer ces hop. com
9415Cul verBl vd, Cul verCi t y, CA90232 Phone: ( 310)2796584 Emai l : hel l o@t hecommer ces hop. com
Š TheCommer ceShop2017. Al l Ri ght sRes er ved. Thei nf or mat i ont r ans mi t t ed, i ncl udi ngat t achment s , i si nt endedonl yf ort heper s on( s )orent i t yt owhi chi ti saddr es s edandmaycont ai nconďŹ dent i aland/ orpr i vi l egedmat er i al . Anyr evi ew, r et r ans mi s s i on, di s s emi nat i onorot herus eof , ort aki ngofanyact i oni nr el i anceupont hi si nf or mat i on byper s onsorent i t i esot hert hant hei nt endedr eci pi enti spr ohi bi t ed. I fyour ecei vedt hi si ner r or , pl eas econt actt hes enderanddes t r oyanycopi es oft hi si nf or mat i on.