Copied to clipboard

Flag this post as spam?

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


  • Aki 43 posts 214 karma points
    Oct 17, 2017 @ 08:33
    Aki
    0

    UmbracoHelper IPublishedContent not available on PublishedEvent

    Hi im working on a custom cache for some of the Items in Content IPublishedContent is not available on the Published Event When is the cache build and can i make a function that is called on the cache completion??

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Oct 17, 2017 @ 14:10
    Alex Skrypnyk
    0

    Hi Aki

    can you show your code?

    Thanks,

    Alex

  • Aki 43 posts 214 karma points
    Oct 18, 2017 @ 20:13
    Aki
    100

    sorry I can't xD

    But what i found was that it can be done... https://gist.github.com/jbreuer/dde3605035179c34b7287850c45cb8c9

    My solution. On Published Event on ApplicationEventHandler. i took the Event Published content which is of the IContent Type and parsed it to the IpublishedContent type ther after i can use the Same methods i use on Init...

  • Poornima Nayar 106 posts 276 karma points MVP 5x c-trib
    Oct 18, 2017 @ 20:53
    Poornima Nayar
    0

    Yes, I have used this and it worked like a charm :-)

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Oct 18, 2017 @ 20:17
    Alex Skrypnyk
    0

    Aki, so the topic is solved?

    What methods from IPublishedContent do you need?

  • Aki 43 posts 214 karma points
    Oct 21, 2017 @ 17:43
    Aki
    0

    Yes it is :)

Please Sign in or register to post replies

Write your reply to:

Draft