Skip to content

Commit

Permalink
Reverted 04b4fff. See #1697
Browse files Browse the repository at this point in the history
  • Loading branch information
tidyui committed Oct 7, 2021
1 parent f384e12 commit 39382d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/Piranha/Services/ContentService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ public async Task<T> GetByIdAsync<T>(Guid id, Guid? languageId = null) where T :
// First, try to get the model from cache
if (typeof(IDynamicContent).IsAssignableFrom(typeof(T)))
{
model = _cache?.Get<T>($"DynamicContent_{ id.ToString() }");
model = null; // TODO: _cache?.Get<T>($"DynamicContent_{ id.ToString() }");
}
else
{
model = _cache?.Get<T>(id.ToString());
model = null; // TODO: _cache?.Get<T>(id.ToString());
}

// If we have a model, let's initialize it
Expand Down

0 comments on commit 39382d0

Please sign in to comment.