when we rebuild indexes in the back office we are actually calling index.CreateIndex() 2 times before populating

(cherry picked from commit d7469e6576)
This commit is contained in:
Shannon
2020-05-04 17:13:01 +10:00
committed by Sebastiaan Janssen
parent b2c2e86971
commit 9f2c1cd3e6

View File

@@ -141,9 +141,6 @@ namespace Umbraco.Web.Editors
try
{
//clear and replace
index.CreateIndex();
var cacheKey = "temp_indexing_op_" + index.Name;
//put temp val in cache which is used as a rudimentary way to know when the indexing is done
AppCaches.RuntimeCache.Insert(cacheKey, () => "tempValue", TimeSpan.FromMinutes(5));