[typo] How to avoid cache
ryanabrams at gmail.com
Tue Aug 23 09:05:46 EDT 2005
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?
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. :-/
Anyway, thanks for the quick response. I'm sure I'll find a way to
get around it until a more elegant solution can be found.
On Aug 23, 2005, at 8:00 AM, Scott Laird wrote:
> To disable the cache, run Typo in development mode. Make sure that
> you sweep the cache first.
> Typo's cache doesn't currently expire, and there's no easy way to
> change this using the current caching system. Pages are swept from
> the cache when something happens that requires a new page build,
> like article or comment posting. Yes, we know that this can be an
> issue with sidebars.
> On Aug 23, 2005, at 5:47 AM, Ryan Abrams wrote:
>> In a related query, what is the default timeout on the cache (i.e.
>> does it wait for a manual change on the page to rebuild, thus
>> rendering the sidebar feeds pointless, or does it expire every
>> hour?) - Is it possible to change the timeout?
>> On Aug 23, 2005, at 7:43 AM, Kris Kaido wrote:
>>> I'm currently redesigning my Typo powered blog and I'd like not to
>>> have to do an "Empty Page Cache" from admin panel each time I change
>>> something in my CSS or code.
>>> Is it possible to disable it ?
>>> Typo-list mailing list
>>> Typo-list at rubyforge.org
>> Typo-list mailing list
>> Typo-list at rubyforge.org
> Typo-list mailing list
> Typo-list at rubyforge.org
More information about the Typo-list