Copied to clipboard

Flag this post as spam?

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


  • Mike 56 posts 88 karma points
    Jul 01, 2011 @ 20:38
    Mike
    0

    Caching bug/issue with Macro

    I'm trying to debug a problem right now and was curious if anyone had encountered something similar.

    I have a macro that produces content output. If I save & publish a content change on a page that contains the macro in its template, it will cause the macro to not output anything. When I republish the entire site, the macro will display output as expected.

    It's entirely consistent:

    • Save and publish a node
    • View the page and notice no macro input
    • Republish the entire site
    • The macro correctly outputs content

    I also manually deleted the umbraco.config and had the same issue with the above steps.

    Umbraco 4.7.0.378
    ASP.NET 4 Integrated Pipeline
    IIS 7.5

    Any suggestions?

  • Mike 56 posts 88 karma points
    Jul 01, 2011 @ 20:55
    Mike
    0

    Just an update, the same thing still hapens even after disabling the XML content cache within the umbraco config.

  • Mike 56 posts 88 karma points
    Jul 01, 2011 @ 22:20
    Mike
    0

    I seemed to have fixed this by modifying a line within my macro from:

    <xsl:variable name="feature" select="umbraco.library:GetXmlNodeById($currentPage//*[name(.)=$field])" />

    To:

    <xsl:variable name="feature" select="umbraco.library:GetXmlNodeById($currentPage/*[name() = $field])" />

    However the inconsistant output behavior I encountered with the first one was rather odd.

Please Sign in or register to post replies

Write your reply to:

Draft