"Steve Pugh" <st***@pugh.net > wrote in message news:48******** *************** *********@4ax.c om...
: "Long" <lo***********@ rogers.com> wrote:
: >"Steve Pugh" <st***@pugh.net > wrote in message news:bb******** *************** *********@4ax.c om...
: >: "Long" <lo***********@ rogers.com> wrote:
: >: >"Nick Kew" <ni**@fenris.we bthing.com> wrote in message news:ru******** ***@jarl.webthi ng.com...
: >: >: In article <lW************ ****@news01.blo or.is.net.cable .rogers.com>, one of infinite
monkeys
: >: >: at the keyboard of "Long" <lo***********@ rogers.com> wrote:
: >: >: >
: >: >: > In the above example, the file is initially cached
: >: >: > and then fetched after the tag is processed 20 times.
: >: >:
: >: >: What a mindbogglingly irrelevant criterion for cacheing!
: >: >:
: >: >Consider that the template and tag is cached and you have updated the .txt file
: >: >content. How would you un-cache and force reload?
: >
: >: I think you missed Nick's point.
: >: Why 20 times? Why not 19? or 21? Or 20,000?
: >:
: >Ah... 20 times is just for the example. The author marking up the tag can specify
: >an appropriate value for his/her use, base on experience or guestimate.
:
: I know that 20 is just an example, but you are still missing the
: point. What does the number of times the document has been accessed
: have to do whether it should be cached or not? Why not base the
: decision to cache on something more relevant such as the date, or the
: freshness of the include file?
:
: The cache we are talking about here is on the web charm enabled web
: sevrer, 'cos nothing you put in the include instruction is going to
: affect proxy or browser caches, right? So why not include a nice
: littel control panel that let's the author flush the cache clear at
: his discretion? Or have the server automatically flush the cache when
: a new include file is uploaded. Why reduce it to guessing based on how
: many times the final page has been accessed?
:
Having the author manually flush the cache is a bad idea. I centainly would
not want to do it. Within an ISP environment how would you control who
flushes what?
In the larger scheme, a WebCharm template can be configure to un-cache
after a period of inactivity (i.e. no page requests). This un-caches all contained
tags so everthing gets flushed automatically. A different scenario happens when
the template is so busy serving requests that it never (may be days) get flushed and
in the mean time you have changed the include content. Having the tag flush
periodically helps keep content up to date, sooner. We could have chosen to do a
time-flush at the tag level, but a count-flush work just as well.
--
Long On
Edgesoft Consulting Inc.
webcharmer @
www.edgesoft.ca/go/member/index.html www.edgesoft.ca/go/index.html www.edgesoft.ca