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:

-Dorg.apache.tapestry.disable-caching=true

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!

Source

Advertisements

About SoCRaT

Research Support and Infrastructure Engineer, OSS & Linux Geek
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s