Jahia DX > Cache woes

0 (0 Good)
0 (0 Bad)

Cache woes

by  tyurk »  2011/06/07 18:07

 

Hello,
I have been working with 6.5 CE BETA (1) and have recently started publishing items on my site. I have a hierarchy of products and productGroups (think composite pattern) much like files and folders. When navigating these, I am using a modified version of the pageBreadcrumb that includes all nodes "product" and "productGroup" nodes in the path. This works fine in edit and preview modes. However, it breaks down in live mode due to something with the cache.

What happens is that as I travel the tree, the breadcrumb path doesn't update itself at each change in node as it does in edit and preview modes. Moreover, clearing the cache in a separate browser tab and refreshing fixes the breadcrumb issue for that page but the problem returns the moment I browse to another node. Note that the page title refreshes correctly with each change in node.

I have tried tweaking (adding) the pageBreadcrumb.properties for my modified version (actually pageBreadcrumbs.products.properties along with pageBreadcrumbs.products.jsp which renders the breadcrumbs) to include cache.mainResource=true, cache.mainResource.flushParents=true or cache.expiration=0, thereby demonstrating both my limited understanding of the cache system and the futility of these modifications. These mods were prompted by a JIRA ticket referring to a similar situation in the ACME demo site wherein someone claimed the problem was fixed by adding the cache.mainResource=true property to the template.

Any insight would be appreciated. If this is a known bug that I just failed to find in the JIRA tickets, feel free to let me know and I will consider moving to a later build and rebuilding my templates to work (note that I was hoping to avoid that pain since I wanted to publish an initial site in the next few days...).

Thanks,

Denis

  • Cache woes
    2011/06/30 13:31

    tyurk <p> &nbsp;</p> <p> <meta charset="utf-8" /> Hello,<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> I have been working with 6.5 CE BETA (1) and have recently started publishing items on my site. I have a hierarchy of products and productGroups (think composite pattern) much like files and folders. When navigating these, I am using a modified version of the pageBreadcrumb that includes all nodes &quot;product&quot; and &quot;productGroup&quot; nodes in the path. This works fine in edit and preview modes. However, it breaks down in live mode due to something with the cache.<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> <br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> What happens is that as I travel the tree, the breadcrumb path doesn&#39;t update itself at each change in node as it does in edit and preview modes. Moreover, clearing the cache in a separate browser tab and refreshing fixes the breadcrumb issue for that page but the problem returns the moment I browse to another node. Note that the page title refreshes correctly with each change in node.<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> <br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> I have tried tweaking (adding) the pageBreadcrumb.properties for my modified version (actually pageBreadcrumbs.products.properties along with pageBreadcrumbs.products.jsp which renders the breadcrumbs) to include cache.mainResource=true, cache.mainResource.flushParents=true or cache.expiration=0, thereby demonstrating both my limited understanding of the cache system and the futility of these modifications. These mods were prompted by a JIRA ticket referring to a similar situation in the ACME demo site wherein someone claimed the problem was fixed by adding the cache.mainResource=true property to the template.<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> <br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> Any insight would be appreciated. If this is a known bug that I just failed to find in the JIRA tickets, feel free to let me know and I will consider moving to a later build and rebuilding my templates to work (note that I was hoping to avoid that pain since I wanted to publish an initial site in the next few days...).<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> <br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> Thanks,<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> <br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> Denis</p>

  • Number of messages  38
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Cache woes

    by  shuber »  2011/06/07 18:07

    Hello Denis,

    There were some known issues in the caches in the betas. Could you try with a recent nightly build ? You may find them here : http://www.jahia.org/cms/home/download/NightlyBuilds

    Best regards,
    Serge Huber.

    Serge Huber (shuber)

    Number of messages  271
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re: Cache woes

    by  tyurk »  2011/06/07 18:07

    Hello Serge,

     

    I rebuilt templates in the most recent build at the time (29 may 11) and same issue. So, I rebuilt the module along the lines of the most recent pageBreadcrumbs and managed to fix things by using renderContext.mainContent.node instead of currentNode references which were in the previous version. That said, I now have an issue with similar behaviour in the tabularList module in that it gets "stuck" displaying the first node that has one. All subsequent nodes are displayed ok until I try to change tabs, at which point the content node reverts to the first node I visited with a tabularList. I have temporarily resolved my problem by getting rid of the tabs until I can take the time to investigate further. Nevertheless, the breadcrumb issue is resolved, but not directly due to the newer cache implementation.

    All that being said, the latest build is a MASSIVE improvement. The project is coming along very nicely ;). Thanks for your help.

    Denis

  • Re: Cache woes
    2011/06/30 13:32

    tyurk <p> Hello Serge,</p> <p> &nbsp;</p> <p> <meta charset="utf-8" /> I rebuilt templates in the most recent build at the time (29 may 11) and same issue. So, I rebuilt the module along the lines of the most recent pageBreadcrumbs and managed to fix things by using renderContext.mainContent.node instead of currentNode references which were in the previous version. That said, I now have an issue with similar behaviour in the tabularList module in that it gets &quot;stuck&quot; displaying the first node that has one. All subsequent nodes are displayed ok until I try to change tabs, at which point the content node reverts to the first node I visited with a tabularList. I have temporarily resolved my problem by getting rid of the tabs until I can take the time to investigate further. Nevertheless, the breadcrumb issue is resolved, but not directly due to the newer cache implementation.<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> <br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> All that being said, the latest build is a MASSIVE improvement. The project is coming along very nicely&nbsp;<img alt=";)" src="http://10.8.37.193/forum/images/smilies/icon_e_wink.gif" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; " title="Wink" />. Thanks for your help.<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> <br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> Denis</p>

  • Number of messages  38
    Registration date Jun 7, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page