We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16942
    • 33 Posts
    Further to the above, I found the snippet and implemented but it seems to have made no difference. Error log says
    Before:
    [2011-07-23 03:24:40] (ERROR @ /index.php) modSnippet: Wayfinder executed in 1.0814 s
    

    After:
    [2011-07-23 03:27:26] (ERROR @ /index.php) modSnippet: Wayfinder executed in 1.6937 s
    [2011-07-23 03:30:28] (ERROR @ /index.php) modSnippet: Wayfinder executed in 1.0324 s
    [2011-07-23 03:32:36] (ERROR @ /index.php) modSnippet: Wayfinder executed in 1.1074 s
    


    The call is:
    [[!Ex? &tElement=`Wayfinder` &startId=`0` &outerClass=`` &firstClass=`` &hereClass=`` &lastClass=``  
    &rowTpl=`wfFooter` &fullLink=`TRUE` &startItemTpl=`wfFooterStart` &hereTpl=`wfFooterHere` 
    &displayStart=`TRUE` &includeDocs=`[[!listChildren? &parent=`0` &depth=`1`]]` &cacheResults=`1`]]
    


    Ex is the Executioner
    listChildren is listChildIds
      • 9207 ☆ A M B ☆
      • 2,475 Posts
      Sorry, I think it was a custom thing. Here’s the simple Snippet:

      listChildIds
      <?php
      return implode(',', $modx->getChildIds($parent, $depth));
      ?>
        • 16942
        • 33 Posts
        Quote from: Everett at Jul 24, 2011, 12:58 AM

        Sorry, I think it was a custom thing. Here’s the simple Snippet:

        listChildIds
        <?php
        return implode(',', $modx->getChildIds($parent, $depth));
        ?>


        That’s what I’ve got here too - but as you can see, above, it seems not to have cured it.
          • 16942
          • 33 Posts
          Bumping this. Any thoughts as to why this is running so slowly?
            • 22303 MODX Staff
            • 10,725 Posts
            Wayfinder could use some optimization no doubt. Just make sure you cache all your Wayfinder calls. Or if you can’t cache them and have simple, flat menus, try using getResources instead.
              • 16942
              • 33 Posts
              Thanks, I’m doing what I can now to eliminate Wayfinder and replace with getResources. But here is a thought... for the 2.0.8 site, here are the cache settings - can you spot anything which could be optimised?
                • 22303 MODX Staff
                • 10,725 Posts
                I would disable cache_db — it is not working well in 2.0.x anyway and adds overhead for no reason if you are using a database on the same machine as the web server. Otherwise, I recommend upgrading to 2.1 for the overall caching improvements it contains.
                  • 16942
                  • 33 Posts
                  Quote from: OpenGeek at Jul 28, 2011, 12:33 PM

                  Otherwise, I recommend upgrading to 2.1 for the overall caching improvements it contains.

                  I wanted to (and indeed attempted the upgrade) but had to rollback due to getResources not working with 2.1.2
                    • 25663 MODX Staff
                    • 12,272 Posts
                    getResources should work just fine with 2.1.2 and 2.1.3.
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 22303 MODX Staff
                      • 10,725 Posts
                      Quote from: rthrash at Jul 29, 2011, 11:57 AM

                      getResources should work just fine with 2.1.2 and 2.1.3.
                      There were issues in 2.1.2 with core parsing of nested non-cacheable tags that affected certain uses of many components, including getResources, but this was fixed for 2.1.3.