We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24205
    • 10 Posts
    Guys, really need help with the speed of loading pages
    Here’s a link to a copy of the site _http://ss.qubstudio.com/
    especially inhibit pages ditto, for example, _http://ss.qubstudio.com/press-center/news/
    I noticed that after clearing the cache - pages slightly faster, but not for long

    Website is powered by MODx Revolution 2.0.7-pl (traditional)
    Apache/2.2.9 (Debian)
    PHP/5.2.6-1 + lenny8 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
    MySQL 5.0.51a-24 + lenny3
    pdo_mysql installed
      • 25663 MODX Staff
      • 12,272 Posts
      Have you tried replacing the Ditto pages with getResources and making sure the calls to them are cached?

      I also suspect you have DNS problems as well:

      Safari can’t open the page “http://ss.qubstudio.com/” because Safari can’t find the server “ss.qubstudio.com”.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 24205
        • 10 Posts
        look....
        i’ve just tried to disable call to all snipets on one of the page
        there were:
        - wayfinder for navigation
        - wayfinder for breadcrums
        - ditto for news list
        - ditto for other news list
        - search

        so now i have simple page on template without snippets (just header, content blocks, footer etc)

        here are stat info:
        MySQL: 0.0003 s,
        4 request(s),
        PHP: 2.6833 s, total: 2.6836 s,
        Document retrieved from cache.


        so i think problem is not in snippets




          • 25663 MODX Staff
          • 12,272 Posts
          On the home page looks like the biggest delay may be resulting from serving up images, which really doesn’t have anything to do with PHP. Timing on home page link from above:



          The interior page is a lot slower at almost 3 seconds. The timing on that one:



          Please paste the template, page content and any TVs into code blocks here for that interior page.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 25663 MODX Staff
            • 12,272 Posts
            Just realized you have paging on that page still. I bet that’s the reason for the PHP delay. What’s that snippet call, and how many Resources is it querying against?
              Ryan Thrash, MODX Co-Founder
              Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
              • 24205
              • 10 Posts
              Page _http://ss.qubstudio.com/press-center/news/

              Template with commented snippets (sorry but in txt files couse out of post lenght):
              http://files.qubstudio.com/ss/ss-template.txt

              Page Content for this page
              empty

              TV’s and theirs types:
              item_date — DATE type
              keywords — TEXTAREA
              news_cat — DropDown List Menu
              photo — IMAGE

              And some of uncommented chunks:

              [[$meta]]
              [[MetaX?language=`uk` &allkeywords=`Site_Keywords`]]
              <title>[[*menutitle:default=`[[*pagetitle]]`]] | [[++site_name]]</title>
              <link rel="alternate" type="application/rss+xml" title="Новини" href="[[~180]]" />
              <link rel="alternate" type="application/rss+xml" title="Вакансії" href="[[~184]]" />
              


              [[$logo]]
              [[*id:is=`[[++site_start]]`:then=`
                        <img class="logo" src="img/logo.png" alt="" width="180" height="51"/>`:else=`
                        <a href="[[~[[++site_start]]]]"><img class="logo" src="img/logo.png" alt="" width="180" height="51"/></a>`]]


              [[$events_right]]
              has disabled snippet ditto
                • 24205
                • 10 Posts
                Quote from: rthrash at Jan 19, 2011, 08:45 AM

                Just realized you have paging on that page still. I bet that’s the reason for the PHP delay. What’s that snippet call, and how many Resources is it querying against?

                its disabled now
                but timing the same
                  • 24205
                  • 10 Posts
                  hm...
                  it seems like all commented snippets are running
                  i’ll try to delete them step by step and compare timing
                    • 33337
                    • 3,975 Posts
                      Zaigham R - MODX Professional | Skype | Email | Twitter

                      Digging the interwebs for #MODX gems and bringing it to you. modx.link
                      • 24205
                      • 10 Posts
                      Quote from: zi at Jan 19, 2011, 09:38 AM

                      http://ss.qubstudio.com/_js/jquery.tools.min.js giving 404. plz check

                      where did you find this call?