You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ed2003 <ed...@yahoo.com> on 2009/11/02 00:25:15 UTC

How do I setup Tomcat to refresh a directory faster than the default 5 seconds

I tried adding variations of the following to server.xml but it still takes 5
seconds for a newly modified file to appear.  Anybody know what I am doing
wrong? 

<Context path="/usr/share/tomcat5.5-webapps/ROOT/status"
    cacheTTL="1" >
   <WatchedResource>status/picture.png</WatchedResource>
 </Context>

-- 
View this message in context: http://old.nabble.com/How-do-I-setup-Tomcat-to-refresh-a-directory-faster-than-the-default-5-seconds-tp26154649p26154649.html
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: How do I setup Tomcat to refresh a directory faster than the default 5 seconds

Posted by Mark Thomas <ma...@apache.org>.
ed2003 wrote:
> I tried adding variations of the following to server.xml but it still takes 5
> seconds for a newly modified file to appear.  Anybody know what I am doing
> wrong? 

That would be a question for the users list.

Mark

> 
> <Context path="/usr/share/tomcat5.5-webapps/ROOT/status"
>     cacheTTL="1" >
>    <WatchedResource>status/picture.png</WatchedResource>
>  </Context>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org