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

provide a switch to disable caching for ZumlExtendlet

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.1
    • 8.5.0
    • Configuration
    • Security Level: Jimmy
    • None
    • ZK 8.5.1 R1

      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>
      

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

              Created:
              Updated:
              Resolved:

                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