cancel
Showing results for 
Search instead for 
Did you mean: 

Overrriding caches.properties?

t16
Champ in-the-making
Champ in-the-making
Hi,

I see this article..:-

http://docs.alfresco.com/4.2/concepts/cache-indsettings.html

Which mentions "The properties for configuring the cache settings are listed in the caches.properties file, which is found in the <installLocation>/tomcat/webapps/alfresco/WEB-INF/classes/alfresco directory"

How do I override this file using the extensions folder? Ive tried custom-caches.properties and caches.properties in the /shared/classes/alfresco/extension folder, and neither of them seem to make any difference to the settings when checked via JMX after a restart.

Thanks!

3 REPLIES 3

mrogers
Star Contributor
Star Contributor
Override with alfresco-global.properties

t16
Champ in-the-making
Champ in-the-making
One more important question…

cache.propertyValueCache.timeToLiveSeconds=0 I notice this is 0 on our live Non clustered system, but set to 300 on a dev clustered system, (out of the box so to speak)

Can you tell me exactly what that setting does, and would changing it to 0 on a clustered setup improve the length of time data is held in the cache or is it likely to wreck the clustered caching and do bad things?

Ive found zero online about the cache.propertyValueCache setting!

If you know I would thank you very gratefully!!

mrogers
Star Contributor
Star Contributor
The property value cache is as its name implies i.e.  its property to value mapping.

It should really be immutable data that can be cached forever, value 0.     However there's a 'special case' where null values are cached that spoils that immutability.   So the last time I looked it was necessary to have a TTL to get the nulls evicted.

My suggestion was to remove the null values from that cache, therefore making it immutable.   I don't know whether that work has been done yet.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.