Ok, you can start using .CSS files again
ColdFusion
I started this post and was toying with the title of "Using ColdFusion caching to lessen the load" or something to that effect, but during the course of the entry I think I had a change of heart.
In a recent post I made about one solution to the problem of dynamically created .css files , there was some great discussion regarding the caching (or lack there of) of the .css templates. In my post, since each .css call was to a Mach-II event, and not to a flat file on the server, there would need to be an extra CF thread used for each page load.
On less traffic'd web sites this would not be an issue at all, since it is such a small process to retreive and display this data. BUT, we were are hoping to make InstantSpot.com able to scale nicely (come on users!).
Some things I did not mention in my previous post:
- The site's style is cached in memory for that user's session, this should help out with any "thinking" that CF would have to do, but it still has to manage the request.
- There aren't a finite number of options the users have with our app. In the very near future, there will be any number of style combinations, so this isn't a case of simply writing a few .css files to the server and referencing them from there.
But, the reality of the situation is that all of the sites' styles will be fairly static as a whole. There will of course be exceptions to this, as I'm sure some of the more "techy" of our users will be interested in customizing their site.
I think it would make more since to write these .css files to disk and allow the webserver to manage the caching, leaving CF to handle the one main request.
Do I need to print a retraction? :)
PS. Thanks to the great commenters on the other post . Another great reason to share ideas (good and bad) on a blog.




Loading....