Configuring Apache Tiles to Avoid Caching During Development

When you want to use Apache Tiles, you will find that your tiles are cached and are not refershed when you reload the page in web browser.

This is a non-issue in production environment because once your webapp is deployed in production you never change your Apache Tiles templates and pages. However, in a development environment this is cumbersome since you will have to redeploy your webapp each time you make a change in your templates.

I faced a similar problem recently and the I found out the I could use the 'useMutableTilesContainer' property in TilesConfigurer class and the 'cache' property in TilesViewResolver class.

You configuration should look something like this:

       <bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles3.TilesConfigurer">
          <property name="definitions">
          <property name="useMutableTilesContainer" value="true" />

<bean id="viewResolver" class="org.springframework.web.servlet.view.tiles3.TilesViewResolver">
      <property name="viewClass">
      <property name="cache" value="false" />

I hope that this helps somebody facing caching problem in Apache Tiles during development.

Basically you have to set 'useMutableTilesContainer' to true and the 'cache' property to false.

The 'useMutableTilesContainer' property is in TilesConfigurer class and the 'cache' property is in TilesViewResolver class.

Happy Coding!


  1. We read your blog , share most useful information in blog . Web Design

  2. I am very thankful for the author who shared the informative blog. This helps the first home buyers in a better way to choose the appropriate location.
    Builders in Chennai
    Properties in Chennai

  3. I am thankful to this blog giving unique and helpful knowledge about this topic. Software Outsourcing Services

  4. These are really amazing and valuable websites you have share with us. Thanks for the informative post.
    WordPress development company in Chennai

  5. Nah dengan memperhatikan beberapa hal diatas, maka ini akan menjadi salah satu cara dan jalan terbaik untuk anda bisa mendapatkan keuntungan
    bandar ceme
    freebet tanpa deposit
    paito warna terlengkap
    syair sgp

  6. Great blog ! I am impressed with suggestions of author. School ERP

  7. This is a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it
    website designing Service

  8. Outstanding in addition to effective suggestion by the author of this blog are genuinely sensible to me. basement remodeling contractors

  9. Thanks for sharing the blog on tiles. Get the Kitchen Flooring tiles and many other at who is the top cork flooring store in Canada.

  10. keep up the good work. this is an Assam post. this to helpful, i have reading here all post. i am impressed. thank you. this is our digital marketing training center. This is an online certificate course
    digital marketing training in bangalore |

  11. This comment has been removed by the author.

  12. Thanks for this blog are more informative contents step by step. I here attached my site would you see this blog.

    7 tips to start a career in digital marketing

    “Digital marketing is the marketing of product or service using digital technologies, mainly on the Internet, but also including mobile phones, display advertising, and any other digital medium”. This is the definition that you would get when you search for the term “Digital marketing” in google. Let’s give out a simpler explanation by saying, “the form of marketing, using the internet and technologies like phones, computer etc”.

    we have offered to the advanced syllabus course digital marketing for available join now.

    more details click the link.

  13. Amazing article useful information.

    Web designing trends in 2020

    When we look into the trends, everything which is ruling today’s world was once a start up and slowly begun getting into. But Now they have literally transformed our lives on a tremendous note. To name a few, Facebook, Whats App, Twitter can be a promising proof for such a transformation and have a true impact on the digital world.

    we have offered to the advanced syllabus course web design and development for available join now.

    more details click the link.

  14. I found so many interesting stuff in your blog. as we provide Discounted Floor Tiles Supply Australia at affordable prices. for more info visit our website.

  15. I am just want to say thanks for sharing the informative blog. Browse a wide range of Floating Cork Flooring at Cancork Floor INC.

  16. I want to say thanks to the author for this article. Get our high-quality End of Lease Cleaning Near me today by visiting our website.

  17. The blog is really nice and interesting to read about various ways. we provide Residential floor installation Sacramento Ca at affordable prices. for more info visit our website.

  18. You have done such a fabulous job by publishing such informative post about Apache Tiles. Through this post you have made my day by publishing it. If you are looking for Multipurpose Floor Tiles, then you can get at pvcfloortile.

  19. Incredible articles and awesome, Your blog furnished us with important data to work with. Each tip of your post are amazing. we provide Discounted Floor Tiles Supply Australia at cheap cost. to know more visit our website.

  20. Thanks for sharing the best information and suggestions, it is very nice and very useful to us. I appreciate the work that you have shared in this post. Keep sharing these types of articles here. interlock fixing in Oman

  21. I read your post and got it quite informative. I couldn't find any knowledge on this matter prior to. I would like to thanks for sharing this article here.White block tiles in Oman

  22. web design, I must admit that your post is really interesting. I have spent a lot of my spare time reading your content. Thank you a lot! and if you need then contact us!


Post a Comment

Be relevant. Spammers will be banned.

Popular posts from this blog

Installing ColdFusion on IIS 7 + Configure IIS for ColdFusion in Windows Vista and Windows Server 2008

ColdFusion Manual Configuration & Issues with TCP ports 51011, 51010 and 51800 on IIS and Apache