Qhov tso zis caching yog dab tsi?
Qhov tso zis caching yog dab tsi?

Video: Qhov tso zis caching yog dab tsi?

Video: Qhov tso zis caching yog dab tsi?
Video: Qhia txhais 30 zaj npau suav tias yog dab tsi part 1 14 Sep 2019 2024, Tej zaum
Anonim

Tso zis caching yog txoj hauv kev zoo tshaj plaws los txhim kho nplooj ntawv ua haujlwm. Cov tso zis cache khaws tag nrho cov cai ntawm nplooj ntawv, piv txwv li HTML thiab tus neeg siv tsab ntawv uas tus neeg rau zaub mov xa mus rau browsers rau rendering. Thaum tus qhua saib ib nplooj ntawv, tus neeg rau zaub mov caches tus tso zis code hauv daim ntawv thov nco.

Cov lus nug tseem yog, dab tsi yog qhov tso zis caching hauv MVC?

ASP. NET MVC - Caching . Cov tso zis cache enables koj mus cache cov ntsiab lus xa rov qab los ntawm kev tswj xyuas. Tso zis caching Yeej tso cai rau koj khaws cov tso zis ntawm ib tus maub los tshwj xeeb hauv lub cim xeeb. Li no, ib qho kev thov yav tom ntej los rau tib qho kev txiav txim hauv tus tswj hwm ntawd yuav raug xa rov qab los ntawm cached tshwm sim.

Qhov thib ob, qhov tso zis caching hauv IIS yog dab tsi? Kev Pabcuam Xov Xwm Hauv Internet ( IIS ) suav nrog ib tso zis cache feature uas tuaj yeem cache dynamic PHP cov ntsiab lus (los yog tso zis los ntawm koj lub Microsoft® ASP. NET lossis classic ASP, lossis lwm nplooj ntawv dynamic) hauv nco. Cov cache kuj koom nrog Http. sys kernel-mode tsav tsheb, txhim kho kev ua haujlwm.

Tsis tas li ntawd, tso zis cache nyob qhov twg?

Cov tso zis cache nyob rau ntawm Web server qhov twg qhov kev thov tau ua tiav. Tus nqi no sib raug rau tus neeg rau zaub mov enumeration tus nqi. Cov tso zis cache tuaj yeem yog khaws cia tsuas yog ntawm lub hauv paus server lossis ntawm tus neeg thov. Proxy servers tsis raug tso cai cache cov lus teb.

VaryByParam yog dab tsi hauv caching?

Cov VaryByParam yog ib qho semicolon-delimited txheej ntawm cov tsis siv los sib txawv cached tso zis. Nws tso cai rau sib txawv cached tso zis los ntawm GET query hlua los yog daim ntawv POST tsis. Yog xav paub ntxiv, saib Caching Ntau Versions ntawm Cov Neeg Siv Tswj Cov Tso Tawm.

Pom zoo: