[ https://issues.apache.org/jira/browse/SLING-4935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radu Cotescu closed SLING-4935. ------------------------------- > Rhino scripts not based on a resource will not get cached correctly by the > Sling Script Cache > --------------------------------------------------------------------------------------------- > > Key: SLING-4935 > URL: https://issues.apache.org/jira/browse/SLING-4935 > Project: Sling > Issue Type: Bug > Components: Scripting > Affects Versions: Scripting JavaScript 2.0.20 > Reporter: Radu Cotescu > Assignee: Radu Cotescu > Fix For: Scripting JavaScript 2.0.22 > > > Rhino scripts not based on repository resources will not get cached correctly > by the Sling Script Cache since their default name will be set to the value > of the > {{org.apache.sling.scripting.javascript.internal.RhinoJavaScriptEngine#NO_SCRIPT_NAME}} > constant. > The first such script will get cached and attempts to run similar scripts > afterwards will always return the first compiled script. -- This message was sent by Atlassian JIRA (v6.3.4#6332)