Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-1496

Added a convenience property to disable Ehcache from using blocking caches

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.1 EE SP3 (5.1.6), 5.2 EE SP1 (5.2.5)
    • None
    • None
    • All

    Description

      A new convenience property has been added to portal(-ext).properties to disable Ehcache from using blocking caches.

      #

      1. Set this to true to allow Ehcache to use blocking caches. This improves
      2. performance significantly by locking on keys instead of the entire cache.
      3. The drawback is that threads can hang if the cache is not used properly.
      4. Make sure that all queries that return a miss also immediately populate
      5. the cache, or else other threads that are blocked on a query of that same
      6. key will continue to hang. Reference Ehcache's BlockingCache for more
      7. information.
        #
        ehcache.blocking.cache.allowed=true

      Setting this property to false is equivalent to setting these three properties
      permissions.object.blocking.cache
      value.object.entity.blocking.cache
      value.object.finder.blocking.cache
      all to false.

      Attachments

        Issue Links

          Activity

            People

              paul.piao Paul Piao (Inactive)
              brian.chan Brian Chan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  5.1 EE SP4 (5.1.7)
                  5.2 EE SP2 (5.2.6)