We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17016
    • 138 Posts
    Unfortunately we have some speed-problems using wayfinder:

    This call takes 2.5 seconds for processing:
    [[Wayfinder? &startId=`0` &level=`3`]]

    resulting in 212 menu-items

    +++

    Reducing it to 2 levels it takes 1.2 seconds:
    [[Wayfinder? &startId=`0` &level=`2`]]

    resulting in 96 menu-items

    +++

    Reducing it to 1 level it takes 0.2 seconds:
    [[Wayfinder? &startId=`0` &level=`1`]]

    resulting in 17 menu-items

    Is there any chance to speed up wayfinder for having better results when we use 3 levels (including 212 menu-items)?


      • 17016
      • 138 Posts
      Is there maybe a way to improve the caching of wayfinder? Theoretically it should be very easy for wayfinder to cache the 212 menu-items and mark the active site while outputting the menu, or is this a very complex process which cannot be improved very easy?

      Does anybody have an idea how we can make wayfinder faster?

      Letti
        • 21838
        • 284 Posts
          MODX Free Template Base: MODX-Boilerplate | my blog (lots of MODX stuff) | my gitHub (translations) | MODX User Groups Germany (Facebook)
          • 17016
          • 138 Posts
          Hi smooth-graphics,

          did you already tried out this "code-changing"? Is it recommended to make the proposed changes or will this maybe lead to other problems?

          What about implementing these lines in a Wayfinder-Upgrade? I ask because the proposed code-changes were published a couple of months ago and were not implemented yet, maybe because they result in new problems?

          Letti
            • 21838
            • 284 Posts
            Quote from: Letti at Apr 05, 2011, 10:55 AM

            Hi smooth-graphics,

            did you already tried out this "code-changing"? Is it recommended to make the proposed changes or will this maybe lead to other problems?

            What about implementing these lines in a Wayfinder-Upgrade? I ask because the proposed code-changes were published a couple of months ago and were not implemented yet, maybe because they result in new problems?
            No, I didn’t tried it out. Just read about it. Don’t know how about implementing this. Would try on a dev server.
              MODX Free Template Base: MODX-Boilerplate | my blog (lots of MODX stuff) | my gitHub (translations) | MODX User Groups Germany (Facebook)
              • 17016
              • 138 Posts
              Does anybody else know how to speed up wayfinder? Or if it is recommended to implement the mentioned code?

              Letti
                • 33968
                • 863 Posts
                I’ve never found Wayfinder to be slow, but then again I have never used it for a mega menu. I’ve used it in Evo to list over 150 links up to 4 levels deep and that has always loaded very quickly for me.

                Could be something different with Revo however as has been pointed out on gitHub. Have you tried that fix yourself? It’ll only take you a minute.

                ** EDIT ** gitHub fix code has been removed from wayfinder.class.php. Might have been implemented already, removed code from this post.
                  • 33968
                  • 863 Posts
                  Also, did you post your exact snippet calls above or are they simplified for clarity? Wondering if you have anything going on in your row templates that could be slowing things down.
                    • 17016
                    • 138 Posts
                    Yes. It is the complete snippet-call. Because of the slow wayfinder-snippet in our real setting I did setup this very small snippet-call on a blank website for testing and got the results above.

                    Are there maybe any wayfinder-settings which could fasten the snippet?

                    Letti
                      • 21838
                      • 284 Posts
                      RTFM: http://rtfm.modx.com/display/addon/wayfinder#Wayfinder-Parameters

                      Use &cacheResults=`1` to get chached menus.
                      Did you actually tried that code-change? Would be very very nice to know if it works better and withut problems…
                        MODX Free Template Base: MODX-Boilerplate | my blog (lots of MODX stuff) | my gitHub (translations) | MODX User Groups Germany (Facebook)