Is there a way to clear caches in uPortal?

Submitted: October 14, 2008
Is there a way to clear uPortal's caches?
Some of uPortal's caches can be cleared via JMX, whereas others cannot easily be cleared.

uPortal caches many things at runtime. For example, users' layouts are cached in memory while those users are logged in. The registry of channels and portlets available to uPortal is cached in memory to avoid reading it from the database all the time. Some caches in uPortal can be cleared at runtime whereas others cannot. uPortal caches XSLT files for improved runtime processing.

uPortal uses ehcache for many of its caches. All caches managed by ehcache are configured in ehcache.xml. There these caches can be configured with different expiration behaviors. Further, ehcache can be monitored using JMX. Connecting via a JMX monitoring tool such as jconsole, you will be able to view the cache properties and clearAll() the caches via CacheManager.

See also the in-progress uPortal 3 manual page on cache configuration.