We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36624
    • 535 Posts
    hello,

    i have a festival site with 55 events/documents and every event/document have a photo gallery (for the press).

    then i made a page with a list with ditto and i’m using maxigallery in a chunk like this :

    <div class="listepresse">
    <a name="[+id+]" id="[+id+]"></a>
    <h2><a href="[~[+id+]~]">[+pagetitle+]</a></h2>
    <div class="auteur">[+eventAuthor+]</div>
    ...
    
    [[MaxiGallery? &gal_query_ids=`[+id+]`&display=`embedded` &embedtype=`external`]]
    
    </div>


    all is ok but i would like to know if it’s possible to improve the loading time of the page because actually we wait 3-4s before the page appear.

    speed benchmark with maxigallery call:
    MySQL: 0.0534 s, 121 request(s), PHP: 3.7658 s, total: 3.8193 s, document retrieved from cache.

    and without.. :
    MySQL: 0.0076 s, 19 request(s), PHP: 0.2447 s, total: 0.2523 s, document retrieved from cache.


    is there something i can do for having a better speed ?

    thank you.


      CTRL+SHIFT+U - Clear Cache
      CTRL+SHIFT+H - Hiding Heft Panel
      CTRL+SHIFT+N - Fast Create Resource
      CTRL+ALT+P - Preview Recource (in edit resorce window)
      CTRL+ALT+S - Save
      • 7923
      • 4,213 Posts
      Yes, you could go through the MaxiGallery code and optimize it grin

      No really.. I’m sorry but I haven’t had much time to look into that yet in this point, and probably won’t do much relating this until I rewrite it using xpdo.. and I can guarantee that it’s not anytime soon. But I’m willing to incorporate any optimizing patches to MG if someone likes to help.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 36624
        • 535 Posts
        ok. thanx for answering grin and thanx for this great snippet !
          CTRL+SHIFT+U - Clear Cache
          CTRL+SHIFT+H - Hiding Heft Panel
          CTRL+SHIFT+N - Fast Create Resource
          CTRL+ALT+P - Preview Recource (in edit resorce window)
          CTRL+ALT+S - Save