Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7, 2.x
    • Fix Version/s: 2.x
    • Component/s: Engine
    • Labels:
      None

      Description

      Can you please add a clear() method on the ResourceCache so that we can clear the cache at runtime.

      This is a really simple change that would only entail calling the underlying Map's .clear() method.

      1. VELOCITY-813.diff
        2 kB
        Oswaldo Hernandez

        Activity

        Hide
        Oswaldo Hernandez added a comment -

        Hi guys,

        We need this capability so that at runtime we can clear the cache when certain application level events are triggered. Can you please point to me what is the process to get this change in, if you need me to I am more than happy tocan provide a patch for this.

        Thanks.

        Show
        Oswaldo Hernandez added a comment - Hi guys, We need this capability so that at runtime we can clear the cache when certain application level events are triggered. Can you please point to me what is the process to get this change in, if you need me to I am more than happy tocan provide a patch for this. Thanks.
        Hide
        Nathan Bubna added a comment -

        Yes, a patch would be helpful in getting this dealt with before the next release (whenever that turns out to be).

        Show
        Nathan Bubna added a comment - Yes, a patch would be helpful in getting this dealt with before the next release (whenever that turns out to be).
        Hide
        Oswaldo Hernandez added a comment -

        Hi Nathan,

        I am attaching the patch for this issue, please let me know if it's all good or if you need me to do anything else to apply it.

        Thanks.

        Show
        Oswaldo Hernandez added a comment - Hi Nathan, I am attaching the patch for this issue, please let me know if it's all good or if you need me to do anything else to apply it. Thanks.
        Hide
        Nathan Bubna added a comment -

        Thanks. Next time, it would help if you can reduce the number of formatting changes in the patch, as those are noise. But this was great, and 2.0 is the right time to do it. Thanks for stepping up!

        Show
        Nathan Bubna added a comment - Thanks. Next time, it would help if you can reduce the number of formatting changes in the patch, as those are noise. But this was great, and 2.0 is the right time to do it. Thanks for stepping up!
        Hide
        Oswaldo Hernandez added a comment -

        Thanks for that Nathan, will be more careful with formatting next time. Looking forward to seeing this change in 2.0

        Show
        Oswaldo Hernandez added a comment - Thanks for that Nathan, will be more careful with formatting next time. Looking forward to seeing this change in 2.0

          People

          • Assignee:
            Unassigned
            Reporter:
            Oswaldo Hernandez
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development