We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37192
    • 7 Posts
    Hi!
    I get prety slow (5-20 seconds) page loading times
    MySQL: 0.0005 s s, 1 request(s), PHP: 5.1598 s s, total: 5.1603 s s, document retrieved from database.

    Site configuration:
    MODX Revolution 2.2.0-pl2 (traditional) with extras:
    Babel
    getResources
    phpThumbOf
    Wayfinder
    Got some simple javascript on page.
    All snippet calls is uncached,

    I tried to remove phpThumbOf, getResources and javascript calls from template(exept babel how can i turn off that?) - nothing changes

    I think it is related to Babel.
    The same time on FF and IE.
      • 22303 MODX Staff
      • 10,725 Posts
      First of all, you should cache all your Snippet calls, at least the ones you can. Otherwise, I would post in the Babel forums...
        • 37192
        • 7 Posts
        :) OK, i meant- All snippet calls are cached.

        I narrowed my search at getResources snippet call
        which seems to slow everything down, but there are Babel and phpthumbof calls in it. Chunk:
        <ul>
        [[getResources? 
            &parents=`[[BabelTranslation? &resourceId=`21` &contextKey=`[[*context_key]]`]]`
            &tpl=`list-docs` 
            &limit=`100` 
            &sortdir=`ASC` 
            &includeTVs=`1`
            &depth=`10` 
            &sortby=`menuindex`
        ]]</ul>


        and list-docs tpl:

        <li class="item">
        <a href="[[~[[+id]]]]">
        <img src="[[+tv.image1:phpthumbof=`w=100&h=100&zc=1`]]"/>
        
        [[+pagetitle]]</a></li>
          • 22303 MODX Staff
          • 10,725 Posts
          I would investigate how long BabelTranslation and/or the phpthumbof filter are taking inside each iteration of the getResources tpl. If you are searching through 10 levels of Resources and then iterating over 100 of those Resources, that may be the biggest problem. That's simply a lot of Resources to iterate and process, especially when each one being rendered triggers the BabelTranslation and phpthumbof calls.