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 506 posts 653 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 3504 posts 12133 karma points MVP 8x 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 506 posts 653 karma points
    Nov 10, 2015 @ 20:29
    andrew shearer
    0

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

Please Sign in or register to post replies

Write your reply to:

Draft