OK thanks, the docs mention "static resource cache" but I could not find info on what it actually is.

I am loading maven jars and /target/classes.

eg:

<PostResources
            base="/home/devuser/git/myproject/tools/META-INF"
className="org.apache.catalina.webresources.DirResourceSet"
            webAppMount="/WEB-INF/classes/META-INF" />

<PostResources
            base="/home/devuser/git/myproject/target/classes"
className="org.apache.catalina.webresources.DirResourceSet"
            webAppMount="/WEB-INF/classes" />

<PostResources
base="/home/devuser/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar"
className="org.apache.catalina.webresources.FileResourceSet"
            webAppMount="/WEB-INF/lib/commons-logging-1.2.jar" />


As its purely for development guess it makes no difference?

Cheers Greg

On 05/11/2023 10:02, Mark Thomas wrote:
On 04/11/2023 11:03, Greg Huber wrote:
Hello,

I am using the <Resources> and <PostResources> to run tomcat for debugging my app (and it is pretty awesome).  I am getting the cache warning limit, as it is 10mb, what effect would it have if I turned off the cache ie cachingAllowed="false" rather than having to increase the limit all the time?

This is one of those "it depends" questions. There are lots of factors that will influence how effective the cache is. You could try and reason what the impact would be but you will likely get a more accurate answer, faster by just trying it and measuring the impact.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to