Copied to clipboard

Flag this post as spam?

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


  • Petras Surna 90 posts 144 karma points
    Nov 06, 2020 @ 23:18
    Petras Surna
    0

    Umbraco 8 - Macro caching does not reset when content is saved

    When you create a macro there is a property Cache period

    If you set this, the macro will not rerun unless:

    1. That period expires.
    2. Any content in changed.

    Condition 2) is not working.

    I tried this in a few versions of Umbraco 8 including the latest at this time 8.9.0

    It definitely works in 7.15.6

    Is this a bug or my user error?

  • George Phillipson 108 posts 288 karma points
    Jun 07, 2021 @ 21:56
    George Phillipson
    0

    Hi Petras

    I can confirm the same, macro does not update values when changed

    Regards George

  • Petras Surna 90 posts 144 karma points
    Jun 08, 2021 @ 02:43
    Petras Surna
    0

    Hi George,

    Do you agree this is a bug? Funny no one else has reported it, it is really important behaviour. I use such macros on menu generation which can be slow but I can't because of this issue.

  • shekhar sharma 22 posts 110 karma points
    Jun 08, 2021 @ 07:39
    shekhar sharma
    0

    Hello Petras,

    In Web Config Just replace debug=true and restart the appPool. Then Try to update in the Content in the cms and see any change in FE ?

    Thanks,

    Shekhar

  • George Phillipson 108 posts 288 karma points
    Jun 08, 2021 @ 08:26
    George Phillipson
    0

    It was a false alert on my side, I wrote some Angular code (Not very well :( ) and that was causing my problem. Changed the code and now works as expected.

  • Petras Surna 90 posts 144 karma points
    Jun 11, 2021 @ 06:54
    Petras Surna
    0

    I made a video that clearly illustrates this bug. Or is it a feature? I am not sure.

    https://youtu.be/pnlq8m-OXtA

    All I have done is:

    • Install default Umbraco with starter kit
    • Add a macro that displays current date/time
    • Insert into master page
    • Date time displayed - good macro works
      • Save and publish home page. Master page shows previous date and time. It should refresh as page save and publish should reset macro cache.

    Would love to know what I am missing or if this is intended behaviour

  • George Phillipson 108 posts 288 karma points
    Jun 11, 2021 @ 07:07
    George Phillipson
    0

    Hi Petras

    Best to raise an bug report https://issues.umbraco.org/issues

    Regards George

  • Petras Surna 90 posts 144 karma points
    Jun 11, 2021 @ 07:08
    Petras Surna
    0

    Will do

  • 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