Comentários (7)

1 checkmin comentou às Link permanente

Hi Hermann, I'm a newbie to DP. Currently trying to do some content based routing on a MPGW. These routing rules come from XML(generated from multiple tables in database) that is parsed by route node with an XSLT. These rules(database tables) and hence the XML will change may be one month. I'm planning to use the XMI to upload the file(set file). Once uploaded I expect this to be cached. My questions here are
How big of a file, or how many files can I cache. Is one way better than other(more files, or 1 big file)?
Do I set a document cache policy for this xml that is consumed by XSLT?
Or is the DOM graph of the XML will be used by XSLT?
Thanks!

2 HermannSW comentou às Link permanente

> How big of a file, or how many files can I cache.
>
maximum document cache size is 169,246,037 bytes, and maximal number of cached documents is 250,000 -- but that is for one XML Manager.

 
> Is one way better than other(more files, or 1 big file)?
>
depends on the use case.
 
> Do I set a document cache policy for this xml that is consumed by XSLT?
>
Yes, you have to, only matched documents get cached.
 
> Or is the DOM graph of the XML will be used by XSLT?
>
I do not understand this.
What I can say is, that the parsed tree of a XML file gets cached, so parsing time is spent once when putting a XML document into the cache only.
 
Hermann.

3 checkmin comentou às Link permanente

Thanks, Herman for all you answers.
I'm trying to set a Document cache policy that should cache documents that are retrieved through url-open within an xslt. But don't see the document being cache. Nothing in logs or in cache status. Any suggestions or common mistakes made?

4 HermannSW comentou às Link permanente

Did you configure document cache as well? By default document cache size is 0, so disabled. Hermann.

5 checkmin comentou às Link permanente

Yes, read about it so did that as the first thing.

6 3207_Pavan_Kumar comentou às Link permanente

Hi Hermann,

 
I have been using Document cache on my XML manager. With all document to be cached as equal priority. After 2-3 days the cache will be full and I get errors when I transact with Datapower. After flushing the cache the error will be gone and occurs again after 2-3 days. Please suggest.

7 vinceisvince comentou às Link permanente

Hermann,

 
I was able to do this and get it to work but I have one small yet kinda big issue. For some reason, if I call multiple cache urls the same header is being passed to the cacheFirewall i've setup.
 
I am setting dynamic
X-compressedRequest
X-httpHeaders
 
And the URL differs slightly. In this case i'm calling 3 times, I see 3 different cached documents but I notice my backend post request is exactly the same all 3 times. I can see I'm passing a different get requests each time to the cachefirewall. For one document cache call it works fine.
 
I am doing a URL-OPEN to my CacheFirewall.
 
If I do another call with another document it then works with that new call so it doesn't seem to keep the same request after datapower is done processing.

Incluir um Comentário Incluir um Comentário