-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 9/14/2014 1:55 PM, Robert Boyle wrote: > Hi, > > > > Here's what I'm trying to do: > > > > I'm building a web-based cueing system for a theatre. Until I > figure out how to use WebSockets, my system will use JavaScript to > refresh the webpage every second with a "cue status file". This is > an HTML file built on the fly by VB (or Python). One second latency > is no problem. > > > > The problem: > > > > Unfortunately (for this application) Tomcat caches the web page > internally for 5 seconds by default, so the maximum cumulative > latency is 6 seconds which is a bit much. > > I believe I can change this by setting the CacheTTL parameter but, > when I try to do this in BASEDIR/conf/context.xml by adding the > line > > <cacheTTL=1000>, the server won't start and spews out many lines of > error messages. > > > > I am a total newcomer to Tomcat but I've spend some hours trying to > find examples of config files on the web with little success. > > Obviously I haven't understood the syntax required here so any help > is gratefully received. > > > > Environment: > > Tomcat 8.0.12 > > Windows 7 / 32bit > > > > > > Robert
Robert, That doesn't appear to be available in Tomcat 8 (quick view of the Javadoc). Also, I tried the following (after reading the 7.x docs) which failed as expected. <Context cacheTTL="1000"> </Context> In Tomcat 7 (7.0.55), you can set this with the following syntax. <Context cacheTTL="1000"> </Context> See the reference here: http://tomcat.apache.org/tomcat-7.0-doc/config/context.html 7.0.55 has WebSockets. . . . just my two cents /mde/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (MingW32) iQEcBAEBAgAGBQJUFg9AAAoJEEFGbsYNeTwt2iAIAIgm4SVWJt2iGonyH3IkY+P0 gza1nSmxlamMYt9ZBFeuBMRrBOP7rt1zXaIUzSif8gHfX5slrZG4ghrPgtklDpib BuAms/7MY5cTWIOaHECZxNfbseOY+I94CZnjpqgdAnwuzKGIPUg7KCgFO9Pnk27/ CTRMpSaR1/flebVnWy5gpg4oG/OIFGKALdze5FNsBItQoyuLS+82ylOQYi3YxTLl A0xlDBD+UXbPYIRm5pZ04S+55xEnG2gg3cb298Njx0bzoruKgcIn/UmEiz0iL1+3 RQC3tqsgN5PtYDZdMGE6DzJGlWpvWSr9rLmRgsUGYLbHv8n3l5X2XhDrzqzX9+Q= =iis6 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org