Copied to clipboard

Flag this post as spam?

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


  • andrew shearer 409 posts 517 karma points
    Oct 12, 2015 @ 22:46
    andrew shearer
    0

    using ContentCache after ContentService.Published event

    hello I have a custom method that needs to perform some logic using the ContentCache after a node is published in the backoffice, but the cache doesn't include the node at the point in time that the Published event is raised.

    http://issues.umbraco.org/issue/U4-7191

    anyone know how i could achieve this? thanks

  • Dave Woestenborghs 3325 posts 11170 karma points MVP 5x admin c-trib
    Oct 13, 2015 @ 06:54
    Dave Woestenborghs
    1

    Maybe you can hook in to the PageCacheRefresher.CacheUpdated event.

    This will run when the cache is updated. Keep in mind that if you are running a load balanced environment this will execute on all servers. Where ContentService.Published event only runs on the server where it has been triggered.

    Dave

  • andrew shearer 409 posts 517 karma points
    Nov 10, 2015 @ 20:29
    andrew shearer
    0

    awesome, thanks Dave. looks like that was what I am after :D

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies