Uploaded image for project: 'Lucee Development'
  1. LDEV-1935

Code of CFCs in componentPaths isn't flushed by PagePoolClear() or SystemCacheClear()

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Critical
    • Resolution: Fixed
    • Affects versions: 5.2.4.37
    • Fix versions: 5.3.3.41
    • Environment:

      Ubuntu 16.04
      Apache 2.4

    • Sprint:
      May 2019 Sprint

      Description

      Code of CFCs in componentPaths isn't flushed by PagePoolClear() or SystemCacheClear(). This makes using the highly-performant "Inspect Templates: Never" setting impractical for many applications. Instead, we must use "Inspect Templates: Once".

      To reproduce:
      1. Set Inspect Templates to "Never" in Lucee Web Admin.
      2. Create the following files:

      Application.cfc:

      component {
        this.componentPaths = [ExpandPath('.') & '/objects'];
      }
      

      objects/number.cfc:

      component {
        public string function get() {
          return 4;
        }
      }
      

      index.cfm

      <cfscript>
      PagePoolClear();
      SystemCacheClear();
      
      WriteOutput(new number().get());
      
      PagePoolClear();
      SystemCacheClear();
      </cfscript>
      

      3. Visit index.cfm. See that it outputs "4".
      4. Change the number returned by the get() method in number.cfc to 5.
      5. Reload index.cfm. See that it still outputs "4". It should output 5.
      6. Reload as many times as you want. Lucee will not pick up the change to number.cfc, even though PagePoolClear() and SystemCacheClear() are being called.

      This problem only seems to affect CFCs in the application's componentPath array. A CFC in the same folder as index.cfm will not exhibit the problem.

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              sb_leon Leon Miller-Out
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: