Fixed behaviour on database cache rebuild to update only for requested content types (#19905)

Fixed behaviour on database cache rebuild to update only for requested content types.

(cherry picked from commit b8b61cd326)
This commit is contained in:
Andy Butland
2025-08-14 08:13:35 +01:00
committed by Zeegaan
parent 56569af0f9
commit 229f1e0ce0
3 changed files with 30 additions and 16 deletions

View File

@@ -120,7 +120,7 @@ internal sealed class DatabaseCacheRebuilder : IDatabaseCacheRebuilder
private Task PerformRebuild()
{
using ICoreScope scope = _coreScopeProvider.CreateCoreScope();
_databaseCacheRepository.Rebuild();
_databaseCacheRepository.Rebuild([], [], []);
// If the serializer type has changed, we also need to update it in the key value store.
var currentSerializerValue = _keyValueService.GetValue(NuCacheSerializerKey);