This project is read-only.

Issues when performing operations on tags with 2nd level cache enabled

Topics: Customizing Orchard
Dec 13, 2012 at 1:04 PM


I'm running Orchard 1.6 with 2nd level cache enabled (tried both SysCache and Memcached).

I'm adding and removing tags through the editor shape of the TagsPart, and then using Parts_Tags_Show to display the tags associated to a content item.

If the 2nd level cache is enabled, adding a tag results in it being displayed only after a certain interval (I believe it happens when some cache entry expires). Removing a tag, instead, results in an ObjectNotFound exception raised by NHibernate, which is the really annoying issue.

It seems that the issues are caused by NHibernate trying to load the old TagsPartRecord.Tags collection from the cache.

Any suggestions on how to fix it? Thanks.

Dec 14, 2012 at 1:48 AM

Please file a bug.

Dec 14, 2012 at 10:38 AM