Rongedza Zvinyorwa zveCaching neFlash, JavaScript, XML, KML kana Google Mepu

Depositphotos 27736851 s

Ichi chipfupi uye chinotapira posvo pane caching nyaya. Masayiti nemabhurawuza zvakavakirwa kunyatsogadzirisa zviwanikwa. Vanozviita zvakanaka dzimwe nguva zvekuti mhedzisiro yacho inoputsa yako webhusaiti ine simba pane kuivandudza kazhinji sezvaunoda. Nhasi ndanga ndichishanda na JW Player, Flash Movie player inodhonza mune runyorwa rwemavhidhiyo kuburikidza neXML faira.

Dambudziko nderekuti isu tinogara tichigadzirisa iyo faira nema webinars matsva uye makirasi ekudzidzisa. Kana vatengi vedu vakaramba vachiuya kune iyo peji zuva rega rega, yaizotakura yakachengetwa vhezheni ye playlist uye isingambovaratidze zvazvino uye zvakanyanya.

Nekuda kweizvozvo, ini ndaifanira kubira iyo SWF Chinhu kodhi zvekuti yaizofunga kuti yairodha nyowani runyorwa nguva dzese.

var video = new SWFObject('player.swf','mpl','670','280','9');
var playlist = 'playlist.xml't='+Math.round(1000 * Math.random());
video.addParam('allowscriptaccess','always');
video.addParam('allowfullscreen','true');
video.addParam('flashvars','&file='+playlist+'&playlistsize=350&controlbar=over&playlist=right');
video.write('video');

Maitiro andakanyengedza mutambi aive nekuisa querystring pazita rezita iro rakagadzira nhamba isina kujairika uchishandisa JavaScript. Hazvina mhosva kuti ndiani anorova peji racho, iri kuzotsvaga rakasiyana zita rezita, saka mutambi anokwevera mune yekutamba nyowani nguva imwe neimwe.

Izvi hazvisi zvekubatsira chete paJW Player, ini ndashandisa zvakare nzira iyi kuGoogle Mepu kana ndichinge ndaita neKML mafaera anochinja zvine simba. Ingo gadzira isingabvunzi querystring uye iyo sisitimu inoteedzazve iyo (zvakaenzana static) KML faira nguva yega yega mushandisi paanoshanya. Iko kubira, asi iri nyore nzira yekushandura caching kure mune aya maficha asina sarudzo.

Pfungwa

  1. 1

Unofungei?

Nzvimbo iyi inoshandisa Akismet kuderedza spam. Dzidza kuti sei deta yako inoshandiswa.