Wednesday, February 20, 2008

Disable Caching in Tapestry

Tapestry strives to be as efficient as possible, so it caches page templates and specifications in order not to reload them every time when they are needed. This is a very useful behavior in a production application; however, during development it can become annoying, as we might not immediately see the changes we have just made to the page.

Thankfully, there is a way to ask Tapestry not to cache any pages in our development environment.

In Eclipse, double click on your server (Tomcat in my example) in the Servers tab, click "Open launch configuration", click the "Arguments" tab and append the line below into the VM arguments text box:


Restart Tomcat, Enjoy! You no longer need to restart your server during development in order to see your changes in action, this used to bug me a lot!


No comments: