Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris Koiak 700 posts 2626 karma points
    Apr 05, 2012 @ 12:57
    Chris Koiak
    0

    Umbraco 5.1 Relations caching

    Hi,

    When I update the relationships in Umbraco 5.1 between members and pages I'm experiencing caching issues.

    using (var uow = hive.OpenWriter<ISecurityStore>())
                {
                        //Add a relation (Relate the node to the member)
                        uow.Repositories.AddRelation(memberToRelate.ProfileId, CurrentPage.Id, myRelationType);
    }

    If the members relations have already been output via Repositories.GetChildRelations then they are not updated when the new relationship is added.

    Is there anyway to force a refresh on the member or page cache? At the momenet I'm republishing the page which is rather slow and clunky.

    Thanks

    Chris

Please Sign in or register to post replies

Write your reply to:

Draft