WAS v8.5 > Develop applications > Develop Dynamic caching > Configure cacheable objects with the cachespec.xml file

Verifying the cacheable page

Use this task to verify the dynamic cache service has its cache policies configured correctly and is serving cached content.

The dynamic cache service should be enabled. You should have a cache policy developed for the application. Refer to the Configuring cacheable objects with the cachespec.xml file article for more information. You must have servlet caching enabled in the web container. Refer to the Configuring servlet caching article for more information.

We can verify the cacheable page by invoking the snoop servlet in the default application. If the dynamic cache is working correctly, refreshing the servlet repeatedly results in viewing cached content.

  1. View the Snoop servlet in the default application by accessing the URI: /snoop The Snoop servlet is a part of the default application. Refer to the Default application article for more information.
  2. Invoke and reload the URI several times using a different web browser or using different parameters. This action returns the same output for the snoop servlet. The snoop servlet is now operating incorrectly, because it displays the request information from its first invocation rather than from the current request.
  3. Inspect the entry in the cache with the dynamic cache monitor. Refer to the Displaying cache information article for more information.


Related


Display cache information
Configure servlet caching


Reference:

Default Application


+

Search Tips   |   Advanced Search