Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-2453

function cache runtime definition of cache intercval

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.1.0.004
    • Fix Version/s: None
    • Labels:

      Description

      The cache expiry timespan for the function cache can only be hardcoded and set at compile time. When you use a variable you get a warning that you need to use a literal:

      public Array function statuses(required String username)
      cachedwithin="#createTimeSpan(0,0,0,config.cacheTimeout)#"

      { return doCall(username,"status"); }

      -> value of attribute [chachedwithin] must have a literal/constant value

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                jochem Jochem van Dieten
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: