[typo] How to avoid cache

Scott Laird scott at sigkill.org
Tue Aug 23 10:02:08 EDT 2005


On Aug 23, 2005, at 6:05 AM, Ryan Abrams wrote:


> Scott,
>
> I suspected as much. Running in dev mode seems like it will create  
> too much of a load on my host, so I'll have to pass on that.
>
> Is there an easy way to sweep the cache from the command line, or  
> from a URL that I don't have to log-in to? I could setup a cron job  
> to ping something or run something every hour or so. Would deleting  
> just index.html if it exists cause the sidebars to refresh on ALL  
> pages, or just on the index?
>
>

You can sweep the cache with 'rake sweep_cache'.  If you're in  
production mode, then you'll need to use 'rake sweep_cache  
RAILS_ENV=production'



> Also, Typo inherits caching from Rails, right? It would seem a  
> check of the timestamp against some "time elapsed" parameter when  
> accessing the cache would be relatively straightforward at that  
> level, and would allow for expiration. Of course, I'm not about to  
> dive into the actual rails codebase to figure that out, so this  
> paragraph is pretty much pointless. Lazy Web. :-/
>
>

Nope.  Doesn't work that way--go look at http://scottstuff.net/blog/ 
articles/2005/08/08/problems-with-rails-and-page-caching


Scott




More information about the Typo-list mailing list