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.