yes it is, feel free to change it.

musachy

On Tue, Aug 11, 2009 at 2:34 AM, Mathias Bogaert<[email protected]> wrote:
> Small naming comment; isn't clearTemplateCache a better name instead
> of clearTemplatesCache?
>
> Mathias
>
> On Tue, Aug 11, 2009 at 12:40 AM, <[email protected]> wrote:
>> Author: musachy
>> Date: Mon Aug 10 22:40:51 2009
>> New Revision: 802949
>>
>> URL: http://svn.apache.org/viewvc?rev=802949&view=rev
>> Log:
>> WW-3189 add a way to clear FreeMarker templates
>>
>> Modified:
>>    
>> struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/template/FreemarkerTemplateEngine.java
>>
>> Modified: 
>> struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/template/FreemarkerTemplateEngine.java
>> URL: 
>> http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/template/FreemarkerTemplateEngine.java?rev=802949&r1=802948&r2=802949&view=diff
>> ==============================================================================
>> --- 
>> struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/template/FreemarkerTemplateEngine.java
>>  (original)
>> +++ 
>> struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/template/FreemarkerTemplateEngine.java
>>  Mon Aug 10 22:40:51 2009
>> @@ -216,4 +216,12 @@
>>     public void setCacheTemplates(String cacheTemplates) {
>>         freemarkerCaching = "true".equals(cacheTemplates);
>>     }
>> +
>> +    /**
>> +     * Clear the templates and missing templates cache
>> +     */
>> +    public void clearTemplatesCache() {
>> +        templates.clear();
>> +        missingTemplates.clear();
>> +    }
>>  }
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to