Skip to content

Commit a52f275

Browse files
committed
include plugin name in cache key. Fixes #10339
1 parent 5a5edce commit a52f275

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

grails-web-gsp/src/main/groovy/org/grails/web/gsp/GroovyPagesTemplateRenderer.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,12 @@ private Template findAndCacheTemplate(Object controller, TemplateVariableBinding
134134
if (scriptSource == null) {
135135
cacheKey = contextPath + pluginName + uri;
136136
} else {
137-
cacheKey = scriptSource.getURI();
137+
if(pluginName != null) {
138+
cacheKey = contextPath + pluginName + scriptSource.getURI();
139+
}
140+
else {
141+
cacheKey = scriptSource.getURI();
142+
}
138143
}
139144

140145
return CacheEntry.getValue(templateCache, cacheKey, reloadEnabled ? GroovyPageMetaInfo.LASTMODIFIED_CHECK_INTERVAL : -1, null,

0 commit comments

Comments
 (0)