LoadContentFromId(), cache, and properties.
Posted: Tue Oct 28, 2014 4:17 pm
This regards CMSMS 1.11.11
I have noticed that in ContentOperations::LoadContentFromId() that if the content is found in the cache, then the loadproperties flag is ignored and the cached content is returned as is.
This is a problem if the cached content was loaded without properties but is now being requested with them.
Locally I've modified the code to reject the cache entry in this case and to fall through and load the content. This seems pretty inefficient, but there is no public API in ContentBase for loading properties into the cached object.
Or am I missing something here?
-jim
I have noticed that in ContentOperations::LoadContentFromId() that if the content is found in the cache, then the loadproperties flag is ignored and the cached content is returned as is.
This is a problem if the cached content was loaded without properties but is now being requested with them.
Locally I've modified the code to reject the cache entry in this case and to fall through and load the content. This seems pretty inefficient, but there is no public API in ContentBase for loading properties into the cached object.
Or am I missing something here?
-jim