Our web application has caching enabled in a pretty standard way, with the LRUPolicy configured as follows:
<ObjectCache Enabled="true">
<Policy Type="LRU" Class="com.tridion.cache.LRUPolicy">
<Param Name="Size" Value="10000" />
<Param Name="MemSize" Value="256m" />
</Policy>
...
</ObjectCache>
For some reason however, the log tells me that the:
17:38:46.642 [WebContainer : 0] INFO com.tridion.cache.CacheFactory - No policy configured, creating a cache with an empty policy.
In other words: the LRUPolicy is somehow not loaded, and the EmptyPolicy is used instead. As a result, the MemSize and Size parameters are ignored (see Cache list size seems limited to 128 items). I understand that this is the normal behaviour of the EmptyPolicy.
What could be the reason for the LRUPolicy not being loaded? I've checked - and ruled out - the following already:
- Incorrect/malformed cd_storage_conf.xml (double-checked it, it's fine)
- The LRUPolicy class could be missing (checked it, it's in the cd_cache.jar, alongside the EmptyPolicy which is loaded)
What am I missing here?