We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    I think the two lines like this are part of your problem:

    [[!If? &subject=`[[*GalleryAlbum]]` &operator=`!empty` &then=`[[$prettyGalleryScripts]]`]]


    The prettyGalleryScripts chunk is being processed and its entire output passed to the If snippet regardless of the subject.


    Try something like this instead:

    [[[[*GalleryAlbum:notempty:then=`$prettyGalleryScripts`:else=``]]]]


      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 1343 ☆ A M B ☆
      • 2,213 Posts
      You might also try looking into alternative menu systems such as getResources (http://jasoncoward.com/technology/2013/06/finding-your-way-without-wayfinder.html), mxExtendedMenu (http://modx.com/extras/package/mxextendedmenu), or MenuExtended (https://github.com/Mark-H/MenuExtended).

      Wayfinder can choke on sites with a lot of resources.
        Patrick | Server Wrangler
        About Me: Website | Tweets |  MODX Hosting
        • 9102 ☆ A M B ☆
        • 318 Posts
        Sorry I wasn't being clear - when I asked to see the templates, I meant the getResources template chunks, not the actual templates. For example, what is in the chunk Categoria.myRowTpl?
          • 36613
          • 328 Posts
          Categoria.myRowTpl:
          <!-- start article -->
          <article class="c-two" style="background-image:url([[+tv.immagine-principale:phpthumbof=`w=200&h=160&zc=1`]])">
           <div style="opacity: 0;" class="background">
                <h3><a href="[[~[[+id]]]]" title="[[+pagetitle]]">[[+pagetitle]]</a></h3>
                <p class="port">
                   <a href="[[~[[+id]]]]" title="[[+pagetitle]]">read</a>
                </p>
           </div>
          </article>
          <!-- end article -->
            • 36613
            • 328 Posts
            Quote from: BobRay at Jun 22, 2013, 05:46 PM
            I think the two lines like this are part of your problem:

            [[!If? &subject=`[[*GalleryAlbum]]` &operator=`!empty` &then=`[[$prettyGalleryScripts]]`]]


            The prettyGalleryScripts chunk is being processed and its entire output passed to the If snippet regardless of the subject.


            Try something like this instead:

            [[[[*GalleryAlbum:notempty:then=`$prettyGalleryScripts`:else=``]]]]




            I tried to change the Ext of prettyGallery as follows:
            [[[[*GalleryAlbum:gte=`0`:then=`$prettyGalleryScripts`:else=``]]]] 

            However, the speed does not change.
              • 36613
              • 328 Posts
              Quote from: AMDbuilder at Jun 22, 2013, 11:33 PM
              You might also try looking into alternative menu systems such as getResources (http://jasoncoward.com/technology/2013/06/finding-your-way-without-wayfinder.html), mxExtendedMenu (http://modx.com/extras/package/mxextendedmenu), or MenuExtended (https://github.com/Mark-H/MenuExtended).

              Wayfinder can choke on sites with a lot of resources.

              Thanks for your suggestion when I get a 'bit of time I'll try to edit the menu. I think for the next projects I will not use more than the Wayfinder seen that creates a lot of speed problems.
                • 9102 ☆ A M B ☆
                • 318 Posts
                Disable the phpthumbof cache manager plugin.
                  • 36613
                  • 328 Posts
                  Quote from: esnyder at Jun 25, 2013, 01:25 PM
                  Disable the phpthumbof cache manager plugin.
                  how do I disable the phpthumbof cache manager plugin ?
                    • 1343 ☆ A M B ☆
                    • 2,213 Posts
                    You should be able to right click on the plugin, and choose disable. It will be available in your elements tree.
                      Patrick | Server Wrangler
                      About Me: Website | Tweets |  MODX Hosting
                      • 9102 ☆ A M B ☆
                      • 318 Posts
                      Sorry for being so brief, I was in a hurry. With the phpThumbOfCacheManager plugin enabled, every time you clear the cache the phpthumbof cache will be cleared as well. Then phpthumbof has to regenerate all of your thumbnail images, which is very slow because image resizing is processor-intensive.

                      The downside of having the plugin disabled is that the thumbnails will not change if you change the image. You can work around this by changing the name of the image file any time the image is changed, because the name of the cached thumbnail is based on the name of the original file, so if you change the name it will force phpthumbof to regenerate the cached thumbnail.