We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36056
    • 2 Posts
    Can anyone please look with me at my revo 2.1.3 site which is very very slow. Initial contact can take upto one minute! After that page loads are faster but still takes 2-3 seconds per pageload. This is my first modx revolution site. I’ve searched the forum and found the Executioner snippet and the <!--MySQL: [^qt^], [^q^] request(s), PHP: [^p^], total: [^t^], document retrieved from [^s^]. --> code, which I placed in the head section. My HTML is valid and my CSS is valid (besides some CSS3). I’ve tested in on almost all browsers on both windows and mac, this makes no difference. Is it my host?

    Site: http://www.jvpc.nl/index.php
    Host: one.com
    Revolution 2.1.3 tradional
    PHP: 5.3.6 (phpinfo published on homepage)
    SQL 5.0.32
    Valid HTML: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.jvpc.nl%2Findex.php%3Fid%3D6
    Valid CSS: http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.jvpc.nl%2Findex.php%3Fid%3D6
    Log file with executioner output on homepage
    Template file link on homepage
    Some output of the PHP connect times:

    <!--MySQL: 0.0000 s, 0 request(s), PHP: 0.3686 s, total: 0.3686 s, document retrieved from cache. -->
    <!--MySQL: 0.0000 s, 0 request(s), PHP: 5.1752 s, total: 5.1752 s, document retrieved from cache. -->
    <!--MySQL: 0.0000 s, 0 request(s), PHP: 0.2103 s, total: 0.2103 s, document retrieved from cache. -->
    <!--MySQL: 0.0000 s, 0 request(s), PHP: 2.9012 s, total: 2.9012 s, document retrieved from cache. -->
    <!--MySQL: 0.0000 s, 0 request(s), PHP: 0.2074 s, total: 0.2074 s, document retrieved from cache. -->

    Server OS and Version: Linux web03-02 2.6.32+30+vserver+sandbox #1 SMP Thu May 26 09:06:22 UTC 2011 x86_64
    PDO: mysql, sqlite (info from phpinfo which is on the homepage)

    I think that’s it. Please let me know if you need more information. Thanks
      • 11055 ☆ A M B ☆
      • 3,112 Posts
      try to use the wayfinder as a cached snippet [[Wayfinder?...]]

      how do you load the template?
      file based as an includeTemplate snippet?
        Rico
        Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
        MODx is great, but knowing how to use it well makes it perfect!

        www.virtudraft.com

        Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

        Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

        Maintainter/contributor of Babel

        Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
        • 33968
        • 863 Posts
        I tried to access your site and it took about 20-30seconds on first load, then less than a second for subsequent page loads. Cached? I don’t know. Weird.

        Have you tested your site in a local environment (ie. MAMP/WAMP)? Same issues?
        Are you using any other snippets on the page, eg. for your image slider?

        If not it could be something to do with your host.
          • 33968
          • 863 Posts
          Also - though I don’t think this is your problem - it’s not a good idea to rename index.php or any of the core files.
          It will definitely hurt you when you go to upgrade, and you might encounter other issues too.
            • 22427
            • 793 Posts
              • 1343 ☆ A M B ☆
              • 2,213 Posts
              I think goldsky is on the right train of thought, cache every snippet possible. This will most likely correct the problem, if not tell us more about your setup so we can help you further.

              Lucas is also correct, you don’t want to rename the index.php file.
                Patrick | Server Wrangler
                About Me: Website | Tweets |  MODX Hosting
                • 36056
                • 2 Posts
                Thank for all the replies.

                @goldsky: the template is just one template file under elements>templates, no template variable. I’ll have to Google what you mean by ’file based as an includeTemplate snippet’.

                @lucas: yes I first developed it on a local enviroment (mamp) without any speed issues. There are no other snippets besides 2x a wayfinfer call. I changed index_nieuw.php back to index.php, I had a problem with DirectoryIndex in my .htaccess. Instead of index.htm (old site) index.php (new site) was loaded in some browsers. Untill the new site is finished, we use the old site for visitors. I tried again and it seems to work now with DirectoryIndex. Is there any way I can check whether the problem is with my host or not?

                @ottogal: yes it is valid, only phpinfo isn’t, and phpinfo isn’t on my homepage normally, this is only for your information. That’s why I published the link of a subpage.

                @AMDbuilder: what do you mean by my setup. You mean the template? It is now published on the homepage as a link. Snippets are all cached.
                  • 33968
                  • 863 Posts
                  Don’t know if anything’s changed but it seems to be loading much faster now. If you’re on a shared hosting package it could be that the server was under a high load when you were testing yesterday which affected your load times. If it was all working fine on your localhost then it looks like something is up with your host or server config.

                  You could start by fixing these two bad requests (both return 404):
                  - http://www.jvpc.nl/assets/templates/jvpc/loading.gif
                  - http://www.jvpc.nl/loading2.gif

                  Have a look here for some great suggestions on how to optimise and speed up your site:
                  http://gtmetrix.com/reports/www.jvpc.nl/C1ExSwn1
                    • 22427
                    • 793 Posts
                    yes it is valid, only phpinfo isn’t
                    Oh, I see - sorry! laugh
                      • 6408
                      • 58 Posts
                      I have to say I find Modx Revo to be very slow indeed, to the point of thinking that i really shouldnt be using it in a commercial environment, but I like to keep up with the latest releases. I am developing on a shared server environment, but I really dont know why it should take so long to load the site - its the first load that is generally the issue - but as the OP says - even other pages can take more than 3 seconds to load. Is there a checklist of things to avoid doing perhaps? Ive found Modx Evo sites to be much faster, and in general my other sites, that are all on the same shared environment never experience these problems, including two very bulky ecommerce sites I run.