Topic
1 reply Latest Post - ‏2012-10-12T07:45:27Z by SystemAdmin
SystemAdmin
SystemAdmin
37422 Posts
ACCEPTED ANSWER

Pinned topic Configure cachespec.xml (servletcache) to cache according to response

‏2012-10-12T07:44:10Z |
Hello experts.

We are using the servletcache to cache request / response combinations for our webservices, so if an exactly similar XML is sent a second time as a request to us, the cache will send back the exact same response as previously.

However, sometimes our response contains an <Error>-element. If this element is present, we do not want the request / response to be cached.

And so far, we have only found ways to configure cachespec.xml to cache according to the request, for example the below configuration caches if there is a <Load>-element in the request.

<cache-id>
<component id="" type="serviceOperation">
<value>namespace</value>
</component>
<component id="Load" type="serviceOperationParameter" />
<component id="Hash" type="SOAPEnvelope" />
<priority>1</priority>
<timeout>86400</timeout>
</cache-id>
Updated on 2012-10-12T07:45:27Z at 2012-10-12T07:45:27Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    37422 Posts
    ACCEPTED ANSWER

    Re: Configure cachespec.xml (servletcache) to cache according to response

    ‏2012-10-12T07:45:27Z  in response to SystemAdmin
    Perhaps I should have asked my question aswell :)

    Do you know of any way to avoid caching if the response contains a specific element, for example an <Error>-element?