stylesheet.php - server resources

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.
Locked
olavt

stylesheet.php - server resources

Post by olavt »

I have a problem that my installations frequently use too much resources on the server.

From my webhost I have been told that one problem is unnecessary dynamic generation of Java-script of the type 

My understanding is that this generates a large number of calls, and my webhost recommends that I convert these to static Java-scripts.

Is there a way to do this?
Pierre M.

Re: stylesheet.php - server resources

Post by Pierre M. »

Hello,

I fail to see Javascript involved. This is plain HTML and CSS.

Do you have CMSms 1.5.1+ ? See the stylesheet cache expiration time in the admin panel. If you still have it to zero that stylesheet.php is launched quite too often. Put 600 to leave it last 10 minutes.

Pierre M.
Nick Smart
Forum Members
Forum Members
Posts: 116
Joined: Mon Jul 28, 2008 4:48 pm

Re: stylesheet.php - server resources

Post by Nick Smart »

olavt wrote: I have a problem that my installations frequently use too much resources on the server.

From my webhost I have been told that one problem is unnecessary dynamic generation of Java-script of the type 

My understanding is that this generates a large number of calls, and my webhost recommends that I convert these to static Java-scripts.

Is there a way to do this?
As Pierre said, you can change the cache expiration for the stylesheet, but I would get a new web host.

If your site is not very busy and your host is complaining then it sounds like you are on an overloaded shared server. Get a new host.

If your site is very busy and your host is complaining then it sounds like you are on a shared server with insufficient capacity (memory, bandwidth, database, etc.). Get a new host, or pay your existing host for a VDS/dedicated server for the service you actually need/use.

Basically, if you host ever complains (and you're not doing something completely stupid), get a new host because they've probably crammed you onto an overloaded shared server with 1000 other websites.

Seriously, get a new web host.

Nick
Locked

Return to “CMSMS Core”