Antaris/RazorEngine — Issue #28: Should the template be updated when using Compile<T> twice?
Author: Madd0g
Created: 2012-02-22 04:27:29+00:00
State: open

I'm having trouble updating a cached template.
I'm using my item id as the template name/key:

Service.Compile(obj.TemplateHtml, obj.Id.ToString());

I ran this command once when initially loading and again when re-loading after saving the template.

But it doesn't update and calls to `Service.Run(templateId, model);` result in the old version of the template.

Should I be doing anything differently?

Thanks