4
votes

I know that the attribute "updateCheck" can be set in "false" in the XMLlike this:

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../config/ehcache.xsd" updateCheck="false" monitoring="autodetect">

But I need to do this programmatically. How should I do it?

1

1 Answers

4
votes

Call this before you use any ehcache functions:

System.setProperty("net.sf.ehcache.skipUpdateCheck", "true");