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

    I'm currently running a website and it's all great in general, but there is one page of the site which takes over 60s to load every time.
    You can fin the page I'm talking about under http://bodhi-esslingen.de/kursplan-esslingen.html . (You might as well click on the link now, it really takes over a minute). The site is running almost a year now and all of a sudden it seems like something broke and now it takes forever to load.

    Stats:
    - Modx Revolution 2.5.2-pl
    - MySQL Version 5.6.19
    - PHP Version 5.6.30

    Add-ons:
    - Ace 1.6.5-pl
    - CKEditor 1.3.0-pl
    - getResources 1.6.1-pl
    - Wayfinder 2.3.3-pl
    - xBug 0.8.4-pl

    I don't know what to do, I checked with xBug, but all the content seemed to be loading fine and quickly. It really feels like there is a timer set to 60s and after that the page loads as it used to.
    I contacted the provider as well and they said the problem is not on their side which seems true as the rest of the page loads fine.

    I hope somebody here can help me. If you need any more data let me know. I attached the providers Query log, the modx error report was just cleared and so far I don't seem to get any inputs (although I set the debug level to 4). If there's something coming up I will add it of course.

    My gratitude,

    vibedesign

    P.S. Couldn't post under Revo 2.5 Forums, so I do here now. Apologies and I hope a mod can move this thread later.

    This question has been answered by multiple community members. See the first response.

      • 38783
      • 571 Posts
      If you haven't changed anything on the site, and the host hasn't changed anything at their end is it possible that the cache has become corrupted?

      You could try deleting the contents of the core/cache folder. (But maybe make a backup of the folder first).

      As a general observation though there are quite a lot of fonts and javascript files being loaded which could make it slow, but probably not that slow!
        If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

        email: [email protected] | website: https://andytough.com
        • 53910
        • 26 Posts
        Thank you for your reply. I tried deleting the contents of the cache folder, but it didn't make a difference so far.

        As a general observation though there are quite a lot of fonts and javascript files being loaded which could make it slow, but probably not that slow!
        I'm aware that there is room for improvements on this site, but as you mentioned it shouldn't be this slow.

        Any other suggestions?
          • 4172
          • 5,888 Posts
          how is the kursplan generated?
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 53910
            • 26 Posts
            It's basically a table and there are template variables for each field. There are quite a bit of TVs but still the site was working for a long time.
              • 38783
              • 571 Posts
              Just a thought about the cache. Did you delete it via the Manager using Manage / Clear Cache or did you do it directly on the server via FTP or SSH? If it was via the manager I would suggest trying via FTP.

              Also, could it be that any of the resources that are referenced from external sites (like fonts or javascript libraries) could have changed in some way. It might be worth temporarily removing, one by one, any external resources that are not contained in the templates for the rest of the site and seeing if there is any improvement.
                If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

                email: [email protected] | website: https://andytough.com
                • 53910
                • 26 Posts
                I cleared the cache in both ways, first through the panel and then deleted everything via FTP.

                I will check on the external scripts, but as far as I know there are no specific scripts on this site, so I would assume all the other sites should be taking longer to load as well.

                I also tried just commenting/removing the table and this seemed to help but it's not really a solution for me to simply remove it. Still it's just a table with included TVs, this shouldn't be such a problem.

                Really appreciating your all help here!
                  • 17301
                  • 932 Posts
                  Page weight is only 790kb and all assets are loading fine. It looks like it's a cause of a snippet or multiple chained output modifiers.
                    ■ email: [email protected] | ■ website: https://alienbuild.uk

                    The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
                    • 4172
                    • 5,888 Posts
                    ok, what is your code, which creates the table?
                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!
                      • 53910
                      • 26 Posts
                      So here is the code of the kursplan:

                      <!DOCTYPE HTML>
                      <html>
                      	<head>
                      		<title>[[*boxTitle]] - [[++site_name]]</title>
                      		<base href="[[!++site_url]]" />
                      		<meta charset="utf-8" />
                      		<meta name="viewport" content="width=device-width, initial-scale=1" />
                      		<meta name="description" content="[[*metaDesc]]">
                      		
                      		<link rel="stylesheet" href="assets/css/main.css" type="text/css">
                      		<link rel="stylesheet" href="assets/css/table_style_toggle.css">
                      		<script src="assets/js/table.js"></script>
                      		<script src="assets/js/table-init.js"></script>
                      		<link rel="shortcut icon" type="image/x-icon" href="images/bodhi_favicon.ico">
                              [[$googleAnalytics]]
                      	</head>
                      	<body class="homepage">
                      		<div id="page-wrapper">
                      
                      			<!-- Header -->
                      				<div id="header-wrapper" style="background: url([[*headerImage]]) center center; background-size: cover;" class="wrapper">
                      					<div id="header">
                      						<!-- Logo -->
                      							[[$logo]]
                      
                      						<!-- Nav -->
                                                  [[$navigation]]
                      					</div>
                      				</div>
                      
                      			<!-- Main -->
                      				<div class="wrapper style1">
                      					<div class="title">[[*boxTitle]]</div>
                      					<div id="main" class="container">
                      
                      							<section>
                      								<header class="style1">
                      									<p class="blocksatz">Wählen Sie einzelne Wochentage über das rechte Dropdown-Menü aus.</p>
                      									
                      									
                      									<table class="tablesaw" data-tablesaw-mode="columntoggle" data-tablesaw-minimap>
                      									<thead>
                      										<tr>
                      											<th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="persist">Zeit</th>
                      											<th scope="col" data-tablesaw-sortable-col data-tablesaw-sortable-default-col data-tablesaw-priority="1">Montag</th>
                      											<th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="2">Dienstag</th>
                      											<th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="3">Mittwoch</th>
                      											<th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="4">Donnerstag</th>
                      											<th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="5">Freitag</th>
                      											<th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="6">Samstag</th>
                      											<th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="7">Sonntag</th>
                      										</tr>
                      									</thead>
                      									<tbody>
                      										<tr class="even">
                      											<td class="uhrzeit">08:15</td> <td>[[*Mo0815]]<br>[[*Mo0815TN]]</td> <td class="qg">[[*Di0815]]<br><span class="tn">[[*Di0815TN]]</span></td> <td>[[*Mi0815]]<br>[[*Mi0815TN]]</td> <td>[[*Do0815]]<br>[[*Do0815TN]]</td> <td>[[*Fr0815]]<br>[[*Fr0815TN]]</td> <td>[[*Sa0815]]<br>[[*Sa0815TN]]</td> <td>[[*So0815]]<br>[[*So0815TN]]</td>
                      										</tr>
                      										<tr>
                      											<td class="uhrzeit">09:00</td> <td>[[*Mo0900]]<br>[[*Mo0900TN]]</td> <td>[[*Di0900]]<br>[[*Di0900TN]]</td> <td class="pr">[[*Mi0900]]<br><span class="tn">[[*Mi0900TN]]</span></td> <td class="sy">[[*Do0900]]<br><span class="tn">[[*Do0900TN]]</span></td> <td class="ys">[[*Fr0900]]<br><span class="tn">[[*Fr0900TN]]</span></td> <td>[[*Sa0900]]<br>[[*Sa0900TN]]</td> <td>[[*So0900]]<br>[[*So0900TN]]</td>
                      										</tr>
                      										<tr class="even">
                      											<td class="uhrzeit">09:30</td> <td class="qg">[[*Mo0930]]<br><span class="tn">[[*Mo0930TN]]</span></td> <td>[[*Di0930]]<br>[[*Di0930TN]]</td> <td>[[*Mi0930]]<br>[[*Mi0930TN]]</td> <td>[[*Do0930]]<br>[[*Do0930TN]]</td> <td>[[*Fr0930]]<br>[[*Fr0930TN]]</td> <td>[[*Sa0930]]<br>[[*Sa0930TN]]</td> <td>[[*So0930]]<br>[[*So0930TN]]</td>
                      										</tr>
                      										<tr>
                      											<td class="uhrzeit">10:15</td> <td>[[*Mo1015]]<br>[[*Mo1015TN]]</td> <td class="sy">[[*Di1015]]<br><span class="tn">[[*Di1015TN]]</span></td> <td class="ys">[[*Mi1015]]<br><span class="tn">[[*Mi1015TN]]</span></td> <td>[[*Do1015]]<br>[[*Do1015TN]]</td> <td>[[*Fr1015]]<br>[[*Fr1015TN]]</td> <td>[[*Sa1015]]<br>[[*Sa1015TN]]</td> <td>[[*So1015]]<br>[[*So1015TN]]</td>
                      										</tr>
                      										<tr class="even">
                      											<td class="uhrzeit">10:30</td> <td>[[*Mo1030]]<br>[[*Mo1030TN]]</td> <td class="sy">[[*Di1030]]<br><span class="tn">[[*Di1030TN]]</span></td> <td>[[*Mi1030]]<br>[[*Mi1030TN]]</td> <td class="po">[[*Do1030]]<br><span class="tn">[[*Do1030TN]]</span></td> <td>[[*Fr1030]]<br>[[*Fr1030TN]]</td> <td>[[*Sa1030]]<br><span class="tn">[[*Sa1030TN]]</span></td> <td>[[*So1030]]<br>[[*So1030TN]]</td>
                      										</tr>
                      										<tr>
                      											<td class="uhrzeit">10:45</td> <td>[[*Mo1045]]<br>[[*Mo1045TN]]</td> <td>[[*Di1045]]<br>[[*Di1045TN]]</td> <td>[[*Mi1045]]<br>[[*Mi1045TN]]</td> <td>[[*Do1045]]<br>[[*Do1045TN]]</td> <td class="po">[[*Fr1045]]<br><span class="tn">[[*Fr1045TN]]</span></td> <td>[[*Sa1045]]<br>[[*Sa1045TN]]</td> <td>[[*So1045]]<br>[[*So1045TN]]</td>
                      										</tr>
                      										<tr class="even">
                      											<td class="uhrzeit">11:00</td> <td class="po">[[*Mo1100]]<br><span class="tn">[[*Mo1100TN]]</span></td> <td>[[*Di1100]]<br>[[*Di1100TN]]</td> <td>[[*Mi1100]]<br>[[*Mi1100TN]]</td> <td>[[*Do1100]]<br>[[*Do1100TN]]</td> <td>[[*Fr1100]]<br>[[*Fr1100TN]]</td> <td class="sy">[[*Sa1100]]<br><span>[[*Sa1100TN]]</span></td> <td>[[*So1100]]<br>[[*So1100TN]]</td>
                      										</tr>
                      										<!--
                      										<tr>
                      											<td class="uhrzeit">13:30</td> <td>[[*Mo1330]]<br>[[*Mo1330TN]]</td> <td>[[*Di1330]]<br>[[*Di1330TN]]</td> <td>[[*Mi1330]]<br>[[*Mi1330TN]]</td> <td>[[*Do1330]]<br>[[*Do1330TN]]</td> <td class="qg">[[*Fr1330]]<br><span class="tn">[[*Fr1330TN]]</span></td> <td>[[*Sa1330]]<br>[[*Sa1330TN]]</td> <td>[[*So1330]]<br>[[*So1330TN]]</td>
                      										</tr>
                      										-->
                      										<tr>
                      											<td class="uhrzeit">16:00</td> <td>[[*Mo1600]]<br>[[*Mo1600TN]]</td> <td>[[*Di1600]]<br>[[*Di1600TN]]</td> <td>[[*Mi1600]]<br>[[*Mi1600TN]]</td> <td class="qg">[[*Do1600]]<br><span class="tn">[[*Do1600TN]]</span></td> <td>[[*Fr1600]]<br>[[*Fr1600TN]]</td> <td>[[*Sa1600]]<br>[[*Sa1600TN]]</td> <td>[[*So1600]]<br>[[*So1600TN]]</td>
                      										</tr>
                      										<tr class="even">
                      											<td class="uhrzeit">17:00</td> <td class="ys">[[*Mo1700]]<br><span class="tn">[[*Mo1700TN]]</span></td> <td>[[*Di1700]]<br>[[*Di1700TN]]</td> <td>[[*Mi1700]]<br>[[*Mi1700TN]]</td> <td>[[*Do1700]]<br>[[*Do1700TN]]</td> <td>[[*Fr1700]]<br>[[*Fr1700TN]]</td> <td>[[*Sa1700]]<br>[[*Sa1700TN]]</td> <td class="ys">[[*So1700]]<br><span class="tn">[[*So1700TN]]</span></td>
                      										</tr>
                      										<!--
                      										<tr class="even">
                      											<td class="uhrzeit">17:15</td> <td>[[*Mo1715]]<br>[[*Mo1715TN]]</td> <td>[[*Di1715]]<br>[[*Di1715TN]]</td> <td>[[*Mi1715]]<br>[[*Mi1715TN]]</td>[[*Do1715]]<br>[[*Do1715TN]]</td> <td>[[*Fr1715]]<br>[[*Fr1715TN]]</td> <td>[[*Sa1715]]<br>[[*Sa1715TN]]</td> <td>[[*So1715]]<br>[[*So1715TN]]</td>
                      										</tr>
                      										-->
                      										<tr>
                      											<td class="uhrzeit">17:30</td> <td>[[*Mo1730]]<br>[[*Mo1730TN]]</td> <td class="ym">[[*Di1730]]<br><span class="tn">[[*Di1730TN]]</span></td> <td>[[*Mi1730]]<br>[[*Mi1730TN]]</td> <td class="pr">[[*Do1730]]<br><span class="tn">[[*Do1730TN]]</span></td> <td>[[*Fr1730]]<br>[[*Fr1730TN]]</td> <td>[[*Sa1730]]<br>[[*Sa1730TN]]</td> <td>[[*So1730]]<br>[[*So1730TN]]</td>
                      										</tr>
                      										<!--<tr class="even">
                      											<td class="uhrzeit">18:00</td> <td>[[*Mo1800]]<br>[[*Mo1800TN]]</td> <td>[[*Di1800]]<br>[[*Di1800TN]]</td> <td>[[*Mi1800]]<br>[[*Mi1800TN]]</td> <td>[[*Do1800]]<br>[[*Do1800TN]]</td> <td>[[*Fr1800]]<br>[[*Fr1800TN]]</td> <td>[[*Sa1800]]<br>[[*Sa1800TN]]</td> <td>[[*So1800]]<br>[[*So1800TN]]</td>
                      										</tr>-->
                      										<tr class="even">
                      											<td class="uhrzeit">18:15</td> <td class="pr">[[*Mo1815]]<br><span class="tn">[[*Mo1815TN]]</span></td> <td>[[*Di1815]]<br>[[*Di1815TN]]</td> <td>[[*Mi1815]]<br>[[*Mi1815TN]]</td> <td>[[*Do1815]]<br>[[*Do1815TN]]</td> <td>[[*Fr1815]]<br><span class="tn">[[*Fr1815TN]]</span></td> <td>[[*Sa1815]]<br>[[*Sa1815TN]]</td> <td>[[*So1815]]<br>[[*So1815TN]]</td>
                      										</tr>
                      										<tr>
                      											<td class="uhrzeit">18:30</td> <td class="pr">[[*Mo1830]]<br><span class="tn">[[*Mo1830TN]]</span></td> <td>[[*Di1830]]<br>[[*Di1830TN]]</td> <td class="ys">[[*Mi1830]]<br><span class="tn">[[*Mi1830TN]]</span></td> <td class="pr">[[*Do1830]]<br>[[*Do1830TN]]</td> <td>[[*Fr1830]]<br>[[*Fr1830TN]]</td> <td>[[*Sa1830]]<br>[[*Sa1830TN]]</td> <td class="ym">[[*So1830]]<br><span class="tn">[[*So1830TN]]</span></td>
                      										</tr>
                      										<tr class="even">
                      											<td class="uhrzeit">18:45</td> <td>[[*Mo1845]]<br>[[*Mo1845TN]]</td> <td>[[*Di1845]]<br>[[*Di1845TN]]</td> <td>[[*Mi1845]]<br>[[*Mi1845TN]]</td> <td class="pr">[[*Do1845]]<br><span class="tn">[[*Do1845TN]]</span></td> <td>[[*Fr1845]]<br>[[*Fr1845TN]]</td> <td>[[*Sa1845]]<br>[[*Sa1845TN]]</td> <td class="yi">[[*So1845]]<br><span class="tn">[[*So1845TN]]</span></td>
                      										</tr>
                      										<tr>
                      											<td class="uhrzeit">19:00</td> <td>[[*Mo1900]]<br>[[*Mo1900TN]]</td> <td class="pr">[[*Di1900]]<br><span class="tn">[[*Di1900TN]]</span></td> <td>[[*Mi1900]]<br>[[*Mi1900TN]]</td> <td>[[*Do1900]]<br>[[*Do1900TN]]</td> <td>[[*Fr1900]]<br>[[*Fr1900TN]]</td> <td>[[*Sa1900]]<br>[[*Sa1900TN]]</td> <td>[[*So1900]]<br>[[*So1900TN]]</td>
                      										</tr><!--
                      										<tr class="even">
                      											<td class="uhrzeit">19:30</td> <td class="ys">[[*Mo1930]]<br><span class="tn">[[*Mo1930TN]]</span></td> <td>[[*Di1930]]<br>[[*Di1930TN]]</td> <td>[[*Mi1930]]<br[[*Mi1930TN]]</td> <td>[[*Do1930]]<br>[[*Do1930TN]]</td> <td>[[*Fr1930]]<br>[[*Fr1930TN]]</td> <td>[[*Sa1930]]<br>[[*Sa1930TN]]</td> <td>[[*So1930]]<br>[[*So1930TN]]</td>
                      										</tr>-->
                      										<tr class="even">
                      											<td class="uhrzeit">19:45</td> <td class="ys">[[*Mo1945]]<br><span class="tn">[[*Mo1945TN]]</span></td> <td>[[*Di1945]]<br>[[*Di1945TN]]</td> <td>[[*Mi1945]]<br[[*Mi1945TN]]</td> <td>[[*Do1945]]<br>[[*Do1945TN]]</td> <td>[[*Fr1945]]<br>[[*Fr1945TN]]</td> <td>[[*Sa1945]]<br>[[*Sa1945TN]]</td> <td>[[*So1945]]<br>[[*So1945TN]]</td>
                      										</tr>
                      										<tr>
                      											<td class="uhrzeit">20:00</td> <td>[[*Mo2000]]<br>[[*Mo2000TN]]</td> <td>[[*Di2000]]<br>[[*Di2000TN]]</td> <td class="ym">[[*Mi2000]]<br><span class="tn">[[*Mi2000TN]]</span></td> <td class="ys">[[*Do2000]]<br><span class="tn">[[*Do2000TN]]</span></td> <td>[[*Fr2000]]<br>[[*Fr2000TN]]</td> <td>[[*Sa2000]]<br>[[*Sa2000TN]]</td> <td>[[*So2000]]<br>[[*So2000TN]]</td>
                      										</tr>
                      										<tr class="even">
                      											<td class="uhrzeit">20:15</td> <td>[[*Mo2015]]<br>[[*Mo2015TN]]</td> <td class="yi">[[*Di2015]]<br><span class="tn">[[*Di2015TN]]</span></td> <td>[[*Mi2015]]<br>[[*Mi2015TN]]</td> <td>[[*Do2015]]<br>[[*Do2015TN]]</td> <td>[[*Fr2015]]<br>[[*Fr2015TN]]</td> <td>[[*Sa2015]]<br>[[*Sa2015TN]]</td> <td>[[*So2015]]<br>[[*So2015TN]]</td>
                      										</tr>
                      									</tbody>
                      								</table>
                      
                      								
                      								<p class="blocksatz">[[*content1]]</p>
                      							
                      								</header>
                      								
                      								<ul class="actions actions-centered">
                      									<li><a href="[[~4]]" class="button style3 big">Preise</a></li>
                      								</ul>
                      							</section>
                      
                      					</div>
                      				</div>
                      
                      			<!-- Footer -->
                      				[[-$footer]]
                      
                      		<!-- Scripts -->
                      
                      			<script src="assets/js/jquery.min.js"></script>
                      			<script src="assets/js/jquery.dropotron.min.js"></script>
                      			<script src="assets/js/skel.min.js"></script>
                      			<script src="assets/js/skel-viewport.min.js"></script>
                      			<script src="assets/js/util.js"></script>
                      			<!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
                      			<script src="assets/js/main.js"></script>
                              </div>
                      	</body>
                      </html>



                      I will check on the external scripts, but as far as I know there are no specific scripts on this site, so I would assume all the other sites should be taking longer to load as well.
                      Seems like I was wrong here, as you can see above there is a special script for the table included. Not the best in JS, could there be something wrong here? Again, site worked fine in the past and it's not an external script so there was no unintentional update except a function is maybe deprecated now?

                      It looks like it's a cause of a snippet or multiple chained output modifiers.
                      I only have the basic Wayfinder and getResources snippet and one for my contactform. I'm not sure what you mean with "chained output modifiers"?