{"id":7593,"date":"2024-01-23T08:55:51","date_gmt":"2024-01-23T08:55:51","guid":{"rendered":"https:\/\/musilda.cz\/?p=7593"},"modified":"2024-01-23T08:55:51","modified_gmt":"2024-01-23T08:55:51","slug":"wordpress-co-je-to-zdravi-webusite-health","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/wordpress-co-je-to-zdravi-webusite-health\/","title":{"rendered":"WordPress – co je to Zdrav\u00ed webu(„Site Health“)"},"content":{"rendered":"\n
„Zdrav\u00ed webu“ je vestav\u011bnou funkcionalitou WordPressu, kter\u00e1 dok\u00e1\u017ee prov\u00e9zt z\u00e1kladn\u00ed diagnostiku webu v\u010detn\u011b v\u00fdpisu podrobnost\u00ed o stavu WordPressu. Tato funkce je dostupn\u00e1 od verze WordPressu 5.2. <\/p>\n\n\n\n
Jedn\u00e1 se o u\u017eite\u010dn\u00fd n\u00e1stroj pro v\u0161echny, kte\u0159\u00ed sv\u00e9 webov\u00e9 str\u00e1nky cht\u011bj\u00ed udr\u017eet v optim\u00e1ln\u00edm stavu.<\/p>\n\n\n\n
Funkci nalezneme v sekci N\u00e1stroje <\/strong>> Zdrav\u00ed webu<\/strong><\/p>\n\n\n\n Po rozkliknut\u00ed se n\u00e1m otev\u0159e okno s celkov\u00fdm hodnocen\u00edm webu a se dv\u011bmi polo\u017ekami.<\/p>\n\n\n\n N\u00e1stroj zdiagnostkuje stav webu a v t\u00e9to sekci n\u00e1m zobraz\u00ed v\u0161echna doporu\u010den\u00e1 vylep\u0161en\u00ed (pokud n\u011bjak\u00e1 jsou) v\u010detn\u011b \u00fasp\u011b\u0161n\u00fdch test\u016f. <\/p>\n\n\n\n Ka\u017ed\u00e1 mo\u017enost se d\u00e1 rozkliknout pro zobrazen\u00ed podrobnost\u00ed a doporu\u010den\u00fdch postup\u016f p\u0159i n\u00e1prav\u011b jednotliv\u00fdch chyb.<\/p>\n\n\n\n V tomto p\u0159\u00edpad\u011b se jedn\u00e1 o zastaral\u00fd SQL server, kter\u00fd by m\u011bl m\u00edt na starost poskytovatel web hostingu. <\/p>\n\n\n\n Zde najdeme ve\u0161ker\u00e9 \u00fadaje o WordPressu. Ka\u017ed\u00e9 pole se d\u00e1 rozkliknout pro v\u00fdpis podrobnost\u00ed. Najdeme zde i nap\u0159. verzi a velikost WordPressu, parametry serveru…<\/p>\n\n\n\n N\u00e1stroj n\u00e1m tedy poskytuje p\u0159ehledn\u00e1 data webu na jednom m\u00edst\u011b. D\u00edky tomu budeme st\u00e1le informov\u00e1ni o z\u00e1kladn\u00edm fungov\u00e1n\u00ed na\u0161eho WordPressu. Zde je souhrn jednotliv\u00fdch mo\u017enost\u00ed:<\/p>\n\n\n\n N\u00ed\u017ee se uvedeme ty nej\u010dast\u011bj\u0161\u00ed chybov\u00e1 hl\u00e1\u0161en\u00ed v\u010detn\u011b jejich \u0159e\u0161en\u00ed.<\/p>\n\n\n\n Sta\u010d\u00ed pouze udr\u017eovat po\u0159\u00e1dek mezi \u0161ablonami i pluginy. Pom\u016f\u017eeme t\u00edm nejen v\u00fdkonu, ale i bezpe\u010dnosti webu. <\/p>\n\n\n\n V tomto p\u0159\u00edpad\u011b sta\u010d\u00ed pouze smazat neaktivn\u00ed pluginy(Pluginy<\/strong> > p\u0159ehled plugin\u016f<\/strong>) v\u010detn\u011b nepou\u017e\u00edvan\u00fdch \u0161ablon(Vzhled <\/strong>> \u0161ablony<\/strong>).<\/p>\n\n\n\n Pokud WordPress hl\u00e1s\u00ed tuto chybu, nejsp\u00ed\u0161e na webu nepou\u017e\u00edv\u00e1me \u017e\u00e1dn\u00fd plugin pro cachov\u00e1n\u00ed. Srovn\u00e1n\u00ed cachovac\u00edch plugin\u016f najdete zde<\/a>.<\/p>\n\n\n\n Objektov\u00e1 cache oproti klasick\u00e9mu cachov\u00e1n\u00ed nab\u00edz\u00ed d\u00edky sv\u00e9 p\u0159izp\u016fsobivosti v\u011bt\u0161\u00ed flexibilitu. Proto je objektov\u00e1 cache vhodn\u00e1 p\u0159edev\u0161\u00edm pro e-shopy a weby s dynamick\u00fdm obsahem. Nab\u00edz\u00ed se i mo\u017enost kombinace obou cachov\u00e1n\u00ed.<\/p>\n\n\n\n Ve WordPressu se d\u00e1 objektov\u00e9 cachov\u00e1n\u00ed nastavit bu\u010f pomoc\u00ed Redis serveru, nebo Memcached. D\u00edky spr\u00e1vn\u00e9mu nastaven\u00ed jsme schopni optimalizovat v\u00fdkon a zrychlit na\u010d\u00edt\u00e1n\u00ed str\u00e1nek.<\/p>\n\n\n\n WordPress v z\u00e1kladu nenab\u00edz\u00ed \u017e\u00e1dn\u00e9 nastaven\u00ed pro objektovou cache, proto m\u016f\u017ee b\u00fdt jedn\u00edm ze zp\u016fsob\u016f pou\u017eit\u00ed pluginu jako je „Redis Object Cache“:<\/p>\n\n\n\n<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
\n
Stav WordPressu<\/h2>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Informace o WordPressu<\/h2>\n\n\n\n
<\/a><\/figure>\n\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Nej\u010dast\u011bj\u0161\u00ed chybov\u00e9 hl\u00e1\u0161ky n\u00e1stroje a jak je napravit<\/h2>\n\n\n\n
M\u011bli byste smazat neaktivn\u00ed \u0161ablony \/ pluginy<\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Mezipam\u011bt str\u00e1nek nebyla zji\u0161t\u011bna a doba odezvy serveru je pomal\u00e1<\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
M\u011bli byste pou\u017e\u00edt trvalou mezipam\u011bt objekt\u016f<\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n