We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16942
    • 33 Posts
    Let’s wake up this thread again. So we know now that Wayfinder and GetResources are slow, even if they’re getting simple strings from a small number of resources.

    What can be done to speed it up?
      • 33968
      • 863 Posts
      Post your snippet calls for both here...
      Do you run any other snippets or plugins on the slow pages?

      Also, are you sure the performance hit is at the back end? Try running it through ySlow or GTMetrix to see if any scripts or external files are causing the slowdown.

      If you’re able to drop a link to the site here too that might help.
        • 16942
        • 33 Posts
        Definitely on the back-end. I’m actually really interested in Yahoo’s Exceptional Performance research. I use yslow et al religious, have the o’reilly books, the lot!

        Here’s the snippet as run though the Executioner (’Ex’ is the Executioner)

        [[!Ex? &tElement=`Wayfinder` &startId=`2` &outerClass=`ul1` &firstClass=`` &hereClass=`` &lastClass=``  &rowTpl=`wfProductList` &level=`1` &fullLink=`TRUE` ]]
        


        The accompanying Wayfinder chunk is:

        <li[[+wf.id]] [[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]">[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
        

          • 16942
          • 33 Posts
          Quote from: lucas at Jul 16, 2011, 05:44 AM

          Do you run any other snippets or plugins on the slow pages?

          That’s a very pertinent question. Yes, however as you’ll see from the below, the culprit is Wayfinder
           [2011-07-16 03:58:29] (ERROR @ /index.php) modSnippet: doFancyHeadings executed in 0.0877 s
          [2011-07-16 03:58:30] (ERROR @ /index.php) modSnippet: CompressPage executed in 0.0892 s
          [2011-07-16 03:58:31] (ERROR @ /index.php) modSnippet: Wayfinder executed in 1.2989 s
          [2011-07-16 03:58:32] (ERROR @ /index.php) modSnippet: Wayfinder executed in 0.8492 s
          
            • 33968
            • 863 Posts
            Is Wayfinder up to date?
              • 16942
              • 33 Posts
              I think so! 2.3.1?
                • 1343 ☆ A M B ☆
                • 2,213 Posts
                Do you call wayfinder cached?
                  Patrick | Server Wrangler
                  About Me: Website | Tweets |  MODX Hosting
                  • 16942
                  • 33 Posts
                  Not always. Wayfinder has some problems with friendly URLs and the only way to fix it is to set fullLinks to true. That also writes the hostname into the URL. Problem is I have sites with multiple domains pointing to it, so if I cache Wayfinder, you get incorrect domains appearing in those links. So you have to use Wayfinder uncached if you want to show links stating the domain that the user is currently browsing from (versus one which might be cached).

                  Wayfinder is really quite a pain!
                    • 9207 ☆ A M B ☆
                    • 2,475 Posts
                    I had trouble with Wayfinder becoming cripplingly slow... the fix was to sorta prime its pump by spoon-feeding it the &includeDocs:

                    [[!Wayfinder? &startId=`0` &depth=`2`]]


                    became

                    [[Wayfinder? &startId=`0` &includeDocs=`[[!listChildIds?&parent=`0` &depth=`2`]]` &cacheResults=`1`]]


                    That massively improved the speed of the Wayfinder calls and subsequent page loads.
                      • 16942
                      • 33 Posts
                      Where can I find listChildIds ? Is it an inbuild function or a package as it’s not in the Extras repository...