You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (JIRA)" <ji...@apache.org> on 2015/08/10 13:25:45 UTC
[jira] [Resolved] (SLING-4935) Rhino scripts not based on a
resource will not get cached correctly by the Sling Script Cache
[ https://issues.apache.org/jira/browse/SLING-4935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radu Cotescu resolved SLING-4935.
---------------------------------
Resolution: Fixed
Fixed in [r1695020|https://svn.apache.org/r1695020].
> 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)