clear nice url cache when the XML refreshes

Upgrading examine version

[TFS Changeset #70180]
This commit is contained in:
slace
2010-06-20 08:44:03 +00:00
parent 9cb12554ae
commit 358c428224
7 changed files with 48 additions and 37 deletions

View File

@@ -41,6 +41,14 @@ namespace umbraco
/// </summary>
public class library
{
internal static void ClearNiceUrlCache()
{
lock (locker)
{
niceUrlCache.Clear();
}
}
private static object locker = new object();
#region Declarations
@@ -2269,6 +2277,13 @@ namespace umbraco
Media.AfterSave += new Media.SaveEventHandler(Media_AfterSave);
Media.BeforeDelete += new Media.DeleteEventHandler(Media_BeforeDelete);
}
content.AfterUpdateDocumentCache += new content.DocumentCacheEventHandler(content_AfterUpdateDocumentCache);
}
void content_AfterUpdateDocumentCache(Document sender, DocumentCacheEventArgs e)
{
library.ClearNiceUrlCache();
}
void Member_BeforeDelete(Member sender, DeleteEventArgs e)

View File

@@ -8,7 +8,7 @@
</xsl:template>
<xsl:template match="/configuration/appSettings/add[@key='umbracoConfigurationStatus']/@value">
<xsl:attribute name="value">4.1.0.betaII</xsl:attribute>
<xsl:attribute name="value">4.1.0.RC</xsl:attribute>
</xsl:template>
<!-- Default templates to match anything else -->