Copied to clipboard

Flag this post as spam?

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


  • Topic author was deleted

    Sep 01, 2011 @ 22:00

    Caching issue

    Hi,

    I have been reading a few topics regarding caching but none that can help me or that i can fully understand. I use a macro to show product on a few pages. The prices that are saved in the cms are not shwon on the page. When i save the price of product A the old price of product B shows up on the page  which is totaly weird.

    I double checked following things
    - i did a save and publish
    - i did some replublisch entire site clicks
    - i set the macro properties (cache perido on 0, unchecked cache by page an cahce personalized)
    - i cleared my browser cache and tested on a few browsers and pc's

    Any suggestions are welcome as i am getting a little frustrated here.

    I am using v 4.0.3.

    kInd regards,
    Bart

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Sep 02, 2011 @ 10:14
    Bo Damgaard Mortensen
    0

    Hi Bart,

    What exactly does your macro hold? An XSLT file or UserControl? Can I trick you into pasting the code here? It might not be a cache problem even if it seems so :-)

    All the best,

    Bo

  • Comment author was deleted

    Sep 02, 2011 @ 10:56

    Hi Bo, 

    Hereby the code, i am curious for your answer! I hope is it clear for you.

    -------------------------------------------------

     

    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>

    <xsl:stylesheet 

    version="1.0" 

    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 

    xmlns:msxml="urn:schemas-microsoft-com:xslt"

    xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" 

    exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">

    <xsl:output method="html" omit-xml-declaration="yes"/>

    <xsl:param name="currentPage"/>

    <xsl:variable name="documentTypeAlias" select="string('Houtpellets')"/> 

    <xsl:variable name="numberOfItems" select="3"/>

    <xsl:template match="/">

     

     <ul class="promo-list clearfix">

           <xsl:for-each select="$currentPage/ancestor-or-self::root/descendant-or-self::node [@nodeTypeAlias=$documentTypeAlias]">

    <xsl:sort select="@sortOrder" order="ascending"/> 

    <xsl:if test="position() &lt;= $numberOfItems"> 

           <xsl:variable name="picW" select="umbraco.library:GetMedia(data [@alias = 'foto'], 'false')/data [@alias = 'umbracoHeight']"/>

    <xsl:variable name="picH" select="umbraco.library:GetMedia(data [@alias = 'foto'], 'false')/data [@alias = 'umbracoWidth']"/>

    <li>

    <xsl:if test="position() &lt;= $numberOfItems">

    <xsl:attribute name="class">ui-corner-all10</xsl:attribute >

    </xsl:if>

    <xsl:if test="position() = $numberOfItems">

    <xsl:attribute name="class">last-item ui-corner-all10</xsl:attribute >

    </xsl:if>

    <div class="product-img ui-corner-top" >

    <xsl:attribute name="style">background:url(/umbraco/imageGen.aspx?image=<xsl:value-of select="umbraco.library:GetMedia(data [@alias = 'foto'], 'false')/data [@alias = 'umbracoFile']" disable-output-escaping="yes"/>&amp;width=210&amp;constrain=true) no-repeat top center;</xsl:attribute >

    </div>

             <ul class="promo-specs-list clearfix">

    <li class="type"><xsl:value-of select="@nodeName" disable-output-escaping="yes"/></li>

               <li class="price" style="font:arial;">&#8364;<xsl:value-of select="data [@alias = 'prijsperzak']" disable-output-escaping="yes"/></li>

    <li class="price"><font face="verdana">&#8364;</font><xsl:value-of select="data [@alias = 'prijsperpallet']" disable-output-escaping="yes"/></li>

               <xsl:value-of select="data [@alias = 'kortebeschrijving']" disable-output-escaping="yes"/>

    <li><a href="{umbraco.library:NiceUrl(@id)}" title="Bekijk de Info in detail" class="focus-link ui-corner-all"><span class="pointer">info</span></a></li>

    </ul>

           </li>

    </xsl:if>

           </xsl:for-each>

          </ul>

    </xsl:template>

    </xsl:stylesheet>

    --------------------------------------------------

    Kind regards, 

    Bart

     

Please Sign in or register to post replies

Write your reply to:

Draft