You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Prashant Punekar <Pr...@mindtree.com> on 2011/03/17 20:33:02 UTC

expire entity cache after every 1 hr !

Hi,

Here is my understanding, please do confirm.

The entity (say MyEntity) has the attribute set never-cache=false (default value)

Now the requirement is, I want this cache to expire every 1 hr.

Is the setting (mentioned below), in framework\base\config\cache.properties a solution to this requirement ?

entitycache.entity.mydelegator.MyEntity.expireTime=3600000
entitycache.entity.mydelegator.MyEntity.useSoftReference=true

here delegator name is "mydelegator" and entity name is "MyEntity"

Regards,
Prashant


________________________________

http://www.mindtree.com/email/disclaimer.html

Re: expire entity cache after every 1 hr !

Posted by David E Jones <de...@me.com>.
You can look in the WebTools Cache maintenance screens to make sure the cache name is correct, but yes, that's example the idea of how things should work in the cache.properties file.

-David


On Mar 17, 2011, at 1:33 PM, Prashant Punekar wrote:

> Hi,
> 
> Here is my understanding, please do confirm.
> 
> The entity (say MyEntity) has the attribute set never-cache=false (default value)
> 
> Now the requirement is, I want this cache to expire every 1 hr.
> 
> Is the setting (mentioned below), in framework\base\config\cache.properties a solution to this requirement ?
> 
> entitycache.entity.mydelegator.MyEntity.expireTime=3600000
> entitycache.entity.mydelegator.MyEntity.useSoftReference=true
> 
> here delegator name is "mydelegator" and entity name is "MyEntity"
> 
> Regards,
> Prashant
> 
> 
> ________________________________
> 
> http://www.mindtree.com/email/disclaimer.html