Page Load Times

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
polarduality

Page Load Times

Post by polarduality »

Hello,

I am new to the forums and to CMS Made Simple.
I have installed a test installation and I love the application itself.
However, I am noticing a delay in page load time. It takes 2-3 seconds for each page to load and the pages don't even have any content. I thought maybe it was just my installation but I visited a lot of the sites posted under "CMS Show Off" and I am noticing the same problem. It is not a huge issue but a page with no content shouldn't take 2-3 seconds to load.

This is the only thing that is holding me back from completely embrasing this great software :)

Is there anything I can do to optimize the page load time?
tstrokes

Re: Page Load Times

Post by tstrokes »

Page load can be effected by the number of modules installed. You can sometimes imporve the page load of cmsms by uninstalling the modules you aren't using.
-tstrokes
cyberman

Re: Page Load Times

Post by cyberman »

Try to DELETE all you can (modules, tags, unused translations) ...
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Page Load Times

Post by tsw »

Server load also affects page creation time

one site (not on my server)
first load:
reload:

other site (on my server)
first load:
reload:

Ive never really had any speed problems except for one server (small, cheap hosting which didnt even allow ssh) so I switched to other server.
cyberman

Re: Page Load Times

Post by cyberman »

There are big differences between providers and their hosting packages.

I know (cheap) hostings with 1000 User on one server. This will slow down CMSms.

But I know hostings too with a nice price and only 50 Users on one server. These packages should prefered.
Pierre M.

Re: Page Load Times

Post by Pierre M. »

Time to use Apache's mod_cache ?
http://forum.cmsmadesimple.org/index.ph ... l#msg44814

PM
cyberman

Re: Page Load Times

Post by cyberman »

polarduality wrote: Is there anything I can do to optimize the page load time?
If you are sure your hosting accout has gzip support you can try to change line 35 in index.php from

Code: Select all

@ob_start();
to

Code: Select all

@ob_start('ob_gzhandler');
Last edited by cyberman on Wed Dec 20, 2006 5:43 pm, edited 1 time in total.
swgreed

Re: Page Load Times

Post by swgreed »

nice tweak! thanks! ;)
moorezilla

Re: Page Load Times

Post by moorezilla »

Wow! This gzip call seems to make my site a lot faster! Nice tip!
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Page Load Times

Post by Ted »

Though, keep in mind that CMSMS is not getting any faster by doing this.  The only thing it does is compress the data before it's sent from the server to the browser.  In reality, it's actually using a few more CPU cycles to do the compression.  If this is really making it faster, then you should be looking at ping times to your server.  It could be a bandwidth issue.
cyberman

Re: Page Load Times

Post by cyberman »

Another hot parameter is

Code: Select all

$config['persistent_db_conn']
Persistant connections are faster. You can try to set it to true. Don't forget "Clear Cache".

But be aware that this can make sometimes trouble with CMSms.
moorezilla

Re: Page Load Times

Post by moorezilla »

gahh... yeah... all this tinkering really displays how much better it is to have access to a dedicated server if you can get one... as if that's a shock to anyone.

I have one cmsms site on a dedicated machine with eaccelerator, multiple database connections, and a high php_memory limit, and it hasn't displayed any performance issues at all. I have some other ones running on vhosts at an ISP and they vary widely in their performance.
cyberman

Re: Page Load Times

Post by cyberman »

Another option could be my cache project

http://dev.cmsmadesimple.org/projects/cache/

It makes output of {content} and {stylesheet} tag static. Content and stylesheet are stored in a zipped file.

I've made a simple test on my playground with 500 news module calls (inside content)

With default content tag
With my ccontent tag
For cached content (means {ccontent} tag) you can set a lifetime too so you can use it for dynamical content.

Please check it out ...
Last edited by cyberman on Mon Jan 08, 2007 12:49 pm, edited 1 time in total.
moorezilla

Re: Page Load Times

Post by moorezilla »

This is great!

Is this the sort of cache option that Ted mentions in the overview of 2.0? If not, maybe this should be rolled into the core?

am
cyberman

Re: Page Load Times

Post by cyberman »

moorezilla wrote: Is this the sort of cache option that Ted mentions in the overview of 2.0?
Don't know  ... I've tried to code only a solution around the existing content tag. Think Ted will hide this option inside the core  :D.
Locked

Return to “CMSMS Core”