Author: trong.tran
Date: 2010-05-13 05:51:16 -0400 (Thu, 13 May 2010)
New Revision: 3078
Modified:
portal/trunk/component/scripting/src/main/java/org/exoplatform/groovyscript/text/TemplateService.java
Log:
GTNPORTAL-1203 Invalidating a template does not work
Modified:
portal/trunk/component/scripting/src/main/java/org/exoplatform/groovyscript/text/TemplateService.java
===================================================================
---
portal/trunk/component/scripting/src/main/java/org/exoplatform/groovyscript/text/TemplateService.java 2010-05-13
08:45:57 UTC (rev 3077)
+++
portal/trunk/component/scripting/src/main/java/org/exoplatform/groovyscript/text/TemplateService.java 2010-05-13
09:51:16 UTC (rev 3078)
@@ -164,8 +164,8 @@
final public void invalidateTemplate(String name, ResourceResolver resolver) throws
Exception
{
- String resourceId = resolver.createResourceId(name);
- getTemplatesCache().remove(resourceId);
+ ResourceKey resourceKey = resolver.createResourceKey(name);
+ getTemplatesCache().remove(resourceKey);
}
public ExoCache<ResourceKey, GroovyTemplate> getTemplatesCache()
@@ -202,7 +202,7 @@
{
TemplateStatistic app = statisticService.apps.get(name);
ResourceResolver resolver = app.getResolver();
- templatesCache_.remove(resolver.createResourceId(name));
+ templatesCache_.remove(resolver.createResourceKey(name));
}
catch (Exception e)
{
Show replies by date