SAP Knowledge Base Article - Preview

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

Symptom

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(Pattern.java:3799)
at java.util.regex.Pattern$Ques.match(Pattern.java:4189)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:4660)
at java.util.regex.Pattern$Curly.match2(Pattern.java:4307)
at java.util.regex.Pattern$Curly.match(Pattern.java:4240)
at java.util.regex.Pattern$Neg.match(Pattern.java:5099)
at java.util.regex.Pattern$GroupTail.match(Pattern.java:4719)
at java.util.regex.Pattern$BmpCharProperty.match(Pattern.java:3800)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:4660)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:4660)
at java.util.regex.Pattern$Start.match(Pattern.java:3463)
at java.util.regex.Matcher.search(Matcher.java:1248)
at java.util.regex.Matcher.find(Matcher.java:637)
at ro.isdc.wro.model.resource.processor.support.JawrCssMinifier$MatcherProcessorCallback.processWithMatcher(JawrCssMinifier.java:76)
at ro.isdc.wro.model.resource.processor.support.JawrCssMinifier.minifyCSS(JawrCssMinifier.java:106)
at ro.isdc.wro.model.resource.processor.impl.css.JawrCssMinifierProcessor.process(JawrCssMinifierProcessor.java:53)
at ro.isdc.wro.model.resource.processor.decorator.ProcessorDecorator.process(ProcessorDecorator.java:86)
at ro.isdc.wro.model.resource.processor.decorator.ProcessorDecorator.process(ProcessorDecorator.java:86)
at ro.isdc.wro.model.resource.processor.decorator.ProcessorDecorator.process(ProcessorDecorator.java:86)
...
at java.lang.Thread.run(Thread.java:808)
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(LockSupport.java:175)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:836)


Read more...

Environment

Not environment specific.

Product

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

Keywords

  • 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 ONE Support launchpad (Login required).

Search for additional results

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