Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Connie DeCinko 931 posts 1160 karma points
    Feb 03, 2011 @ 16:24
    Connie DeCinko
    0

    Usercontrol Cache EXTREMELY Dangerous!

    I was just alerted to a major issue with caching usercontrols on our site.  We have a typical contact form in a .NET usercontrol.  In the macro properties, I had "Cache By Page" checked.  The assumption is since the form never changes that it would be safe to cache it.

    Where the fun begins is not only is the form cached, but any data typed into the form is cached as well!  When a user pulls up the form after someone else has previously used it, the previous person's data appears in the form!

    How in the world can Umbraco allow such a blatant security violation to occur?

     

  • Sean Mooney 131 posts 158 karma points c-trib
    Feb 03, 2011 @ 17:22
    Sean Mooney
    0

    True but if your form doesn't change and there is no logic that happens when it first loads I don't see how there would be much of a benefit to caching it. The macro cache really helps when there is a lot of server side action that needs to happen before the macro is presented to the user, for instance looping through a large number of nodes to create links, etc.

Please Sign in or register to post replies

Write your reply to:

Draft