I had gone through all my templates & associated chunks previously & removed whatever no-cache bangs I could find, with marginal results. Right now I am consolidating whatever chunks I can into single calls. So far the results with this are much better than working with the cache.
The homepage is still loading from the database in around 8 - 10 seconds [mild improvement] but most pages are loading from cache in under 2 seconds on average.
Curiously enough the biggest bump I've had so far was consolidating the footer chunks & html into one call, almost 2s load time difference.. ad most strangely, neither chunk had any processing, both were static html!?
I don't know what to think about that... will post the new template soon, have one more thing to try + implementing Mark & Bruno's suggestions [very interesting - thanks guys!]
-sean
*** Not just websites, we also create signage, banners, print, trade show displays and more! ***
Sean Kimball CLP, CLS.
Technical Director / Sr. Developer | BigBlock Studios
._______________________________________________.
Bigblock Studios
http://www.bigblockstudios.ca Web site design & development.
27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
phone/fax: 905-426-5525
-
☆ A M B ☆
- 3,141 Posts
Sean, if you want I can have a quick look into your manager next week to see if I can spot any bottlenecks, send over login details to mark at modx.com and I'll let you know if I can find anything.
8-10 seconds is simply not acceptable and I can't think of many scenarios where something like that would be expected. There is of course some overhead in using multiple chunks, but that really shouldn't be noticable.
Here is what the templates are looking like now:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[[$PageHeader]]
[[[[*LoadFlowPlayer:is=`true`:then=`$FlowplayerJS`:else:``]]]]
[[[[*PPEnableScripts:is=`true`:then=`$PowerPointHeaders`:else:``]]]]
[[$GoogleAnalytics]]
</head>
<body>
<div id="viewport" class="[[*ContentSection]]">
<div id="header">
<div id="logo"><a href="/" ><img src="/assets/images/transparent.gif" height="117" width="243" border="0" /></a></div>
<div id="banner"></div>
</div>
<div id="main-navigation">
[[Wayfinder? &debug=`0` &startId=`0` &level=`3` &displayStart=`1` &outerTpl=`MainOuterTpl` &rowTpl=`MainRowTpl` &parentRowTpl=`MainParentRow` &cacheResults=`1`]]
</div>
<div id="breadcrumbs">
[[Breadcrumbs? &crumbSeparator=`>` ¤tAsLink=`false` &titleField=`longtitle` &showCrumbsAtHome=`0`]]
</div>
[[*id:eq=`1`:then=`[[$ShowSlider]][[$VerticalTicker]]`:else=``]]
<div id="main-content">
<div id="left-content">
[[*ShowTitle]]
[[*content]]
[[[[*PPEnableScripts:is=`true`:then=`$PowerPointPageContent`:else=``]]]]
[[*FeedbackID:notequalto=`0`:then=`[[$ShowPollFeedback]]`]]
[[*allowComments]]
</div>
<div id="right-content"> [[ShowOncologistSearch]]
[[[[*CalloutPositionOne:notempty=`*CalloutPositionOne`]]]]
[[[[*CalloutPositionTwo:notempty=`*CalloutPositionTwo`]]]]
[[[[*CalloutPositionThree:notempty=`*CalloutPositionThree`]]]]
[[[[*CalloutPositionFour:notempty=`*CalloutPositionFour`]]]]
[[[[*CalloutPositionFive:notempty=`*CalloutPositionFive`]]]]
</div>
</div>
[[$PageFooter]]
</div>
</body>
</html>
The home page is still taking close to 10 seconds to load from database, but everything coming from cache is generally under 2s now. [indicating to me that there is still something being called unached!!]
*** Not just websites, we also create signage, banners, print, trade show displays and more! ***
Sean Kimball CLP, CLS.
Technical Director / Sr. Developer | BigBlock Studios
._______________________________________________.
Bigblock Studios
http://www.bigblockstudios.ca Web site design & development.
27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
phone/fax: 905-426-5525
Quote from: markh at Apr 06, 2012, 06:02 PMSean, if you want I can have a quick look into your manager next week to see if I can spot any bottlenecks, send over login details to mark at modx.com and I'll let you know if I can find anything.
8-10 seconds is simply not acceptable and I can't think of many scenarios where something like that would be expected. There is of course some overhead in using multiple chunks, but that really shouldn't be noticable.
Wow - thanks Mark, absolutely I'll take you up on that. Will send the deets over soon.
-sean
*** Not just websites, we also create signage, banners, print, trade show displays and more! ***
Sean Kimball CLP, CLS.
Technical Director / Sr. Developer | BigBlock Studios
._______________________________________________.
Bigblock Studios
http://www.bigblockstudios.ca Web site design & development.
27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
phone/fax: 905-426-5525
-
☆ A M B ☆
- 3,141 Posts
Possibly something in one of those chunks? An easy way to see what's uncached is by opening its cache file (be warned, they're quite big

) in core/cache/resource/web/resources/x.cache.php.
Find the "_content" index there which contains the entire output with cached tags parsed, but uncached or tags that could not be processed remaining in place.
Quote from: markh at Apr 06, 2012, 06:38 PMPossibly something in one of those chunks? An easy way to see what's uncached is by opening its cache file (be warned, they're quite big
) in core/cache/resource/web/resources/x.cache.php.
Find the "_content" index there which contains the entire output with cached tags parsed, but uncached or tags that could not be processed remaining in place.
I was just actually gonna run a query on the database for '!' :p
*** Not just websites, we also create signage, banners, print, trade show displays and more! ***
Sean Kimball CLP, CLS.
Technical Director / Sr. Developer | BigBlock Studios
._______________________________________________.
Bigblock Studios
http://www.bigblockstudios.ca Web site design & development.
27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
phone/fax: 905-426-5525
-
☆ A M B ☆
- 3,141 Posts
Lol, that's an option as well I guess
OK, getting more than a little frustrated with this [this is all my modx sites]
Just provisioned a new DV4 server at MediaTemple thinking that updated php/apache/mysql would help the speed issue. No improvement at all, I have plain pages that are loading in like 4 seconds before being cached.
I don't want to leave MediaTemple... is there some 'requirements' documentation somewhere that lays out what php configs need to be set [or unset] required loaded php/apache modules [or known conflicts?]
[the new environment is centos 64/php 5.3.5]
BTW, I get about 1000 of these on a single page load:
[2012-04-19 16:27:28] (DEBUG @ /index.php) Language string not found: ""
[ed. note: sean69 last edited this post 14 years, 6 months ago.]
*** Not just websites, we also create signage, banners, print, trade show displays and more! ***
Sean Kimball CLP, CLS.
Technical Director / Sr. Developer | BigBlock Studios
._______________________________________________.
Bigblock Studios
http://www.bigblockstudios.ca Web site design & development.
27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
phone/fax: 905-426-5525
-
☆ A M B ☆
- 3,141 Posts
I've heard issues with MT before, but don't have any first hand experience with it myself.
Reqs are here:
http://develop.modx.com/develop/revolution/requirements/
Everything checks out there - are there any 'known issues' with any apache modules/php extensions etc? any recommended tweaks to be done to my.cnf/php.ini
*** Not just websites, we also create signage, banners, print, trade show displays and more! ***
Sean Kimball CLP, CLS.
Technical Director / Sr. Developer | BigBlock Studios
._______________________________________________.
Bigblock Studios
http://www.bigblockstudios.ca Web site design & development.
27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
phone/fax: 905-426-5525