You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When caching is enabled, ContentService caches objects of different types under the same key. This means that once an object is cached, any further calls for the same ID that use a different type will always return null.
This means that using GenericContent objects is impossible with caching enabled. As soon as the list in the manager retrieves a list of ContentInfo objects, all your calls to retrieve the full objects start to fail (and vice versa).
// Get an instance of MyContentvarcontent=awaitapi.Content.GetByIdAsync<MyContent>(ID);// This call will now return null until cache is clearedvarcontentInfo=awaitapi.Content.GetByIdAsync<ContentInfo>(ID);
The text was updated successfully, but these errors were encountered:
Hi,
When caching is enabled, ContentService caches objects of different types under the same key. This means that once an object is cached, any further calls for the same ID that use a different type will always return null.
This means that using GenericContent objects is impossible with caching enabled. As soon as the list in the manager retrieves a list of ContentInfo objects, all your calls to retrieve the full objects start to fail (and vice versa).
The text was updated successfully, but these errors were encountered: