# Caching of CSS files

**URL:** <https://www.ruby-forum.com/t/caching-of-css-files/65892>\
**Category:** Radiant CMS\
**Created:** [August 22, 2006, 7:45am UTC](https://www.ruby-forum.com/t/caching-of-css-files/65892 "2006-08-22T07:45:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathan\_Donaldson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/97f17d/32.png) [@Nathan\_Donaldson](https://www.ruby-forum.com/u/Nathan_Donaldson)\
**Post date:** [August 22, 2006, 7:45am UTC](https://www.ruby-forum.com/t/caching-of-css-files/65892/1 "2006-08-22T07:45:51Z")

</div>

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/](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](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/](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](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/](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](http://sonar.boost.co.nz/sonar.css)]

---

<div class="post-metadata">

**Author:** ![Nathan\_Donaldson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/97f17d/32.png) [@Nathan\_Donaldson](https://www.ruby-forum.com/u/Nathan_Donaldson)\
**Post date:** [August 22, 2006, 8:37am UTC](https://www.ruby-forum.com/t/caching-of-css-files/65892/2 "2006-08-22T08:37:20Z")

</div>

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 🙂

Bodhi

---

<div class="post-metadata">

**Author:** ![Nathan\_Donaldson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/97f17d/32.png) [@Nathan\_Donaldson](https://www.ruby-forum.com/u/Nathan_Donaldson)\
**Post date:** [August 22, 2006, 2:42pm UTC](https://www.ruby-forum.com/t/caching-of-css-files/65892/3 "2006-08-22T14:42:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Nathan\_Donaldson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/97f17d/32.png) [@Nathan\_Donaldson](https://www.ruby-forum.com/u/Nathan_Donaldson)\
**Post date:** [August 29, 2006, 2:39am UTC](https://www.ruby-forum.com/t/caching-of-css-files/65892/4 "2006-08-29T02:39:11Z")

</div>

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
