Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3839

provide a switch to disable caching for ZumlExtendlet

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.5.0
    • Fix Version/s: 8.5.1
    • Component/s: Configuration
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.5.1 R1

      Description

      WCSExtendlet / WPDExtendlet have a switch to disable caching for development purposes:

      https://www.zkoss.org/wiki/ZK_Configuration_Reference/zk.xml/The_Library_Properties/org.zkoss.zk.WPD.cache
      https://www.zkoss.org/wiki/ZK_Configuration_Reference/zk.xml/The_Library_Properties/org.zkoss.zk.WCS.cache

      The ZumlExtendlet currently doesn't have a switch to disable caching in a similar way.

      I suggest adding a new option org.zkoss.zk.ZUML.cache and disable caching accordingly.

      Workaround

      reduce the cache check period (which currently defaults to 1h)
      https://github.com/zkoss/zk/blob/v8.5.0/zk/src/org/zkoss/zk/ui/http/ZumlExtendlet.java#L80-L85

      <library-property>
      	<name>org.zkoss.util.resource.extendlet.checkPeriod</name>
      	<value>5</value>
      </library-property>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rudyhuang rudyhuang
              Reporter:
              cor3000 cor3000
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Time Spent - 2 hours Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - 2 hours Remaining Estimate - 2 hours
                  2h