Page 1 of 1

stylesheet.php - server resources

Posted: Thu Dec 11, 2008 8:37 am
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?

Re: stylesheet.php - server resources

Posted: Wed Dec 17, 2008 6:48 pm
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.

Re: stylesheet.php - server resources

Posted: Thu Dec 18, 2008 1:06 pm
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