Last active
December 12, 2015 05:28
-
-
Save rarous/4721338 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<connector id="xxx" useCache="true" maxAge="36000"> | |
<data priority="2"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<connector id="xxx" useCache="true"> | |
<data priority="2" maxAge="36000"> |
nevim jak zadat XML do komentare a jsem liny hledat syntax.
Ale nejspis bych to udelal jeste jinak - samostatny element cache (child connector elementu), ktery bude mit atribut maxAge. Pritomnost tohoto elementu aktivuje kesovani.
Ale kdyz nad tim premyslim, tak i druha moznost dava smysl - data si reknou jak max. muzou byt stara (je to dobre? mozna) a u jejich kesovani at se stara kdo umi.
Tohle je součást dotazu. Data se mají zpracovat s prioritou 2 a výsledek může být z cache, ale data nesmějí být starší než maxAge.
Pokud to souvisí dohromady, proč nedát useCache, maxAge a priority pod jeden element? (<data ../>) Ale je fakt, že cache se vztahuje k connectoru, tak useCache bych i nechal u něj.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Co dává větší smysl?