Rebuild cache after migration
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Umbraco.Core.Logging;
|
using Umbraco.Core.Logging;
|
||||||
|
using Umbraco.Core.Migrations.PostMigrations;
|
||||||
using Umbraco.Core.Models;
|
using Umbraco.Core.Models;
|
||||||
using Umbraco.Core.Persistence;
|
using Umbraco.Core.Persistence;
|
||||||
using Umbraco.Core.Persistence.Dtos;
|
using Umbraco.Core.Persistence.Dtos;
|
||||||
@@ -12,9 +13,12 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0
|
|||||||
{
|
{
|
||||||
public class RadioAndCheckboxAndDropdownPropertyEditorsMigration : MigrationBase
|
public class RadioAndCheckboxAndDropdownPropertyEditorsMigration : MigrationBase
|
||||||
{
|
{
|
||||||
|
private readonly IMigrationContext _context;
|
||||||
|
|
||||||
public RadioAndCheckboxAndDropdownPropertyEditorsMigration(IMigrationContext context)
|
public RadioAndCheckboxAndDropdownPropertyEditorsMigration(IMigrationContext context)
|
||||||
: base(context)
|
: base(context)
|
||||||
{
|
{
|
||||||
|
_context = context;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Migrate()
|
public override void Migrate()
|
||||||
@@ -27,7 +31,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0
|
|||||||
|
|
||||||
if (refreshCache)
|
if (refreshCache)
|
||||||
{
|
{
|
||||||
//FIXME: trigger cache rebuild. Currently the data in the database tables is wrong.
|
_context.AddPostMigration<RebuildPublishedSnapshot>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user