SAP Knowledge Base Article - Preview

2728418 - Wro4j files are not cached despite setting the property cacheUpdatePeriod to a value greater than 0


When wro4j is enabled and the default cacheUpdatePeriod value is overwritten to have a value larger than 0, it is observed that wro4j files are not being loaded from cache.

Using the dev tools, the cache-control header of the response can be seen to have a value of no-cache.

If thread dumps are taken during the requests, some threads can be observed to be minifying files for a long time, blocking other threads in the process and slowing down the process of loading the webpage:

"hCSHTTP32" prio=5 tid=0x243 nid=0xf3 RUNNABLE - stats: cpu=40948 blk=-1 wait=-1
java.lang.Thread.State: RUNNABLE
at java.util.regex.Pattern$BmpCharProperty.match(
at java.util.regex.Pattern$Ques.match(
at java.util.regex.Pattern$GroupHead.match(
at java.util.regex.Pattern$Curly.match2(
at java.util.regex.Pattern$Curly.match(
at java.util.regex.Pattern$Neg.match(
at java.util.regex.Pattern$GroupTail.match(
at java.util.regex.Pattern$BmpCharProperty.match(
at java.util.regex.Pattern$GroupHead.match(
at java.util.regex.Pattern$GroupHead.match(
at java.util.regex.Pattern$Start.match(
at java.util.regex.Matcher.find(
at ro.isdc.wro.model.resource.processor.impl.css.JawrCssMinifierProcessor.process(
at ro.isdc.wro.model.resource.processor.decorator.ProcessorDecorator.process(
at ro.isdc.wro.model.resource.processor.decorator.ProcessorDecorator.process(
at ro.isdc.wro.model.resource.processor.decorator.ProcessorDecorator.process(
Locked synchronizers: count = 1
- java.util.concurrent.locks.ReentrantReadWriteLock$NonfairSync@638fcbf5

"hCSHTTP39" prio=5 tid=0x250 nid=0xfa WAITING owned by hCSHTTP32 Id=243 - stats: cpu=108673 blk=-1 wait=-1
java.lang.Thread.State: WAITING
at sun.misc.Unsafe.park(Native Method)
- parking to wait for java.util.concurrent.locks.ReentrantReadWriteLock$NonfairSync@638fcbf5
at java.util.concurrent.locks.LockSupport.park(
at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(



Not environment specific.


SAP Hybris Commerce 1808 ; SAP Hybris Commerce 6.0 ; SAP Hybris Commerce 6.1 ; SAP Hybris Commerce 6.2 ; SAP Hybris Commerce 6.3 ; SAP Hybris Commerce 6.4 ; SAP Hybris Commerce 6.5 ; SAP Hybris Commerce 6.6 ; SAP Hybris Commerce 6.7


  • hybris
  • Commerce
  • wro
  • forced
  • force refresh
  • reload
, KBA , CEC-COM-CPS , SAP Commerce , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.