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

@@ -1 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><ItemProperties xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Properties><Property><Name>svn:mime-type</Name><Value>application/octet-stream</Value></Property></Properties></ItemProperties>

Binary file not shown.

View File

@@ -41,7 +41,6 @@
Searches the specified search text in all fields of the index
</summary>
<param name="searchText">The search text.</param>
<param name="maxResults">The max number of results.</param>
<param name="useWildcards">if set to <c>true</c> the search will use wildcards.</param>
<returns>Search Results</returns>
</member>
@@ -52,11 +51,16 @@
<param name="searchParameters">The search parameters.</param>
<returns>Search Results</returns>
</member>
<member name="M:Examine.ISearcher.CreateSearchCriteria">
<summary>
Creates a search criteria instance as required by the implementation
</summary>
<returns></returns>
</member>
<member name="M:Examine.ISearcher.CreateSearchCriteria(Examine.IndexType)">
<summary>
Creates a search criteria instance as required by the implementation
</summary>
<param name="maxResults">The max number of results.</param>
<param name="type">The type of data in the index.</param>
<returns>An instance of <see cref="T:Examine.SearchCriteria.ISearchCriteria"/></returns>
</member>
@@ -64,7 +68,6 @@
<summary>
Creates a search criteria instance as required by the implementation
</summary>
<param name="maxResults">The max number of results.</param>
<param name="type">The type of data in the index.</param>
<param name="defaultOperation">The default operation.</param>
<returns>
@@ -135,7 +138,7 @@
<summary>
Deletes index for node for the specified providers
</summary>
<param name="node"></param>
<param name="nodeId"></param>
<param name="providers"></param>
</member>
<member name="M:Examine.ExamineManager.ReIndexNode(System.Xml.Linq.XElement,Examine.IndexType)">
@@ -151,6 +154,12 @@
</summary>
<param name="node"></param>
</member>
<member name="M:Examine.ExamineManager.CreateSearchCriteria">
<summary>
Creates search criteria that defaults to IndexType.Any and BooleanOperation.And
</summary>
<returns></returns>
</member>
<member name="P:Examine.ExamineManager.Instance">
<summary>
Singleton

View File

@@ -252,6 +252,12 @@
<param name="searchParams">The fluent API search.</param>
<returns></returns>
</member>
<member name="M:UmbracoExamine.LuceneExamineSearcher.CreateSearchCriteria">
<summary>
Creates search criteria that defaults to IndexType.Any and BooleanOperation.And
</summary>
<returns></returns>
</member>
<member name="M:UmbracoExamine.LuceneExamineSearcher.CreateSearchCriteria(Examine.IndexType)">
<summary>
Creates an instance of SearchCriteria for the provider
@@ -496,35 +502,6 @@
</summary>
<returns></returns>
</member>
<member name="T:UmbracoExamine.XsltExtensions">
<summary>
Methods to support Umbraco XSLT extensions
</summary>
</member>
<member name="M:UmbracoExamine.XsltExtensions.Search(System.String)">
<summary>
Uses the default provider specified to search, returning an XPathNodeIterator
</summary>
<param name="searchText">The search query</param>
<returns>A node-set of the search results</returns>
</member>
<member name="M:UmbracoExamine.XsltExtensions.Search(System.String,System.Boolean,System.String)">
<summary>
Uses the provider specified to search, returning an XPathNodeIterator
</summary>
<param name="searchText"></param>
<param name="useWildcards"></param>
<param name="providerName"></param>
<returns></returns>
</member>
<member name="M:UmbracoExamine.XsltExtensions.Search(System.String,System.Boolean)">
<summary>
Uses the default provider specified to search, returning an XPathNodeIterator
</summary>
<param name="searchText">The search query</param>
<param name="useWildcards">Enable a wildcard search query</param>
<returns>A node-set of the search results</returns>
</member>
<member name="M:UmbracoExamine.SearchCriteria.LuceneSearchExtensions.SingleCharacterWildcard(System.String)">
<summary>
Adds a single character wildcard to the string for Lucene wildcard matching
@@ -671,8 +648,17 @@
file declaring the computer name that is part taking in the indexing. This file will then be used to
determine the master indexer machine in a load balanced environment (if one exists).
</summary>
<param name="name"></param>
<param name="config"></param>
<param name="name">The friendly name of the provider.</param>
<param name="config">A collection of the name/value pairs representing the provider-specific attributes specified in the configuration for this provider.</param>
<exception cref="T:System.ArgumentNullException">
The name of the provider is null.
</exception>
<exception cref="T:System.ArgumentException">
The name of the provider has a length of zero.
</exception>
<exception cref="T:System.InvalidOperationException">
An attempt is made to call <see cref="M:System.Configuration.Provider.ProviderBase.Initialize(System.String,System.Collections.Specialized.NameValueCollection)"/> on a provider after the provider has already been initialized.
</exception>
</member>
<member name="F:UmbracoExamine.LuceneExamineIndexer.m_IndexerLocker">
<summary>
@@ -1093,6 +1079,7 @@
<summary>
The folder path of where the lucene index is stored
</summary>
<value>The index path.</value>
<remarks>
This can be set at runtime but will not be persisted to the configuration file
</remarks>
@@ -1101,6 +1088,7 @@
<summary>
Returns the DirectoryInfo object for the index path.
</summary>
<value>The index directory.</value>
</member>
<member name="P:UmbracoExamine.Config.IndexSet.IndexParentId">
<summary>

Binary file not shown.

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 -->