2008-05-31, 06:32 AM
When i asked would there be a problem if i called the css from mysql people answered
So do you call the css every time a page loads or u have made it other way??
Quote:If the content of the CSS is in the DB, and you're having to pull it every single page view, it'll add up to a lot of transfer from mysql to php. The query itself may be very fast, but there's limits on how fast the data can be moved around.
Another thing to consider is that you are taking up a PHP process which itself uses 4-5MB of RAM just to serve what is essentially a static file. This reduces how many spare processes you have for other files that have a legitimate need for PHP.
It makes sense to leave the slower, heavier processing for pages that need it, and serve the static content normally as it's faster and lighter.
So do you call the css every time a page loads or u have made it other way??