Caching of CSS files

Hi all,

I have been looking at my logs as I am testing radiant and have noticed
that the CSS files seem to take longer to generate than the HTML files.
Am I doing something wrong?

Here is a snippet from my logs, you can see that the css file is taking
5 times longer to generate than the page that is calling it.

Regards
Nathan

Processing SiteController#show_page (for at 2006-08-22 17:29:51) [GET]
Parameters: {“action”=>“show_page”, “url”=>“/”, “controller”=>“site”}
Completed in 0.00464 (215 reqs/sec) | DB: 0.00103 (22%) | 200 OK
[http://sonar.boost.co.nz/]

Processing SiteController#show_page (for at 2006-08-22 17:29:52) [GET]
Parameters: {“action”=>“show_page”, “url”=>[“sonar.css”],
“controller”=>“site”}
Completed in 0.02204 (45 reqs/sec) | DB: 0.00570 (25%) | 200 OK
[http://sonar.boost.co.nz/sonar.css]

Processing SiteController#show_page (for at 2006-08-22 17:29:53) [GET]
Parameters: {“action”=>“show_page”, “url”=>“/”, “controller”=>“site”}
Completed in 0.00459 (217 reqs/sec) | DB: 0.00104 (22%) | 200 OK
[http://sonar.boost.co.nz/]

Processing SiteController#show_page (for at 2006-08-22 17:29:54) [GET]
Parameters: {“action”=>“show_page”, “url”=>[“sonar.css”],
“controller”=>“site”}
Completed in 0.02220 (45 reqs/sec) | DB: 0.00584 (26%) | 200 OK
[http://sonar.boost.co.nz/sonar.css]

Processing SiteController#show_page (for at 2006-08-22 17:29:56) [GET]
Parameters: {“action”=>“show_page”, “url”=>“/”, “controller”=>“site”}
Completed in 0.00458 (218 reqs/sec) | DB: 0.00103 (22%) | 200 OK
[http://sonar.boost.co.nz/]

Processing SiteController#show_page (for at 2006-08-22 17:29:56) [GET]
Parameters: {“action”=>“show_page”, “url”=>[“sonar.css”],
“controller”=>“site”}
Completed in 0.02186 (45 reqs/sec) | DB: 0.00572 (26%) | 200 OK
[http://sonar.boost.co.nz/sonar.css]

On 22/08/2006, at 2:45 PM, Nathan Donaldson wrote:

Hi all,

I have been looking at my logs as I am testing radiant and have noticed
that the CSS files seem to take longer to generate than the HTML files.
Am I doing something wrong?

Here is a snippet from my logs, you can see that the css file is taking
5 times longer to generate than the page that is calling it.

How do you have your site set up? Are you just using the styled-blog
layout?
Although, the difference between 0.005s and 0.02s, although several
times bigger, isn’t very much :slight_smile:

Bodhi

Nathan Donaldson wrote:

Hi all,

I have been looking at my logs as I am testing radiant and have noticed
that the CSS files seem to take longer to generate than the HTML files.
Am I doing something wrong?

Do you have a filter defined on the CSS page? Maybe Textile is spending
lots of time parsing braces it doesn’t need to parse…

Jay

Hi again,

Thanks for the suggestion, I have checked and I don’t have a filter on
the CSS page.

Bodhi, I take your point that the difference isn’t that much, but as it
is a file that is cached it should be pretty quick.

I’m wondering if I am doing something wrong?

Regards
Nathan