Load - caches and so forth?
Alex Tweedly
alex at tweedly.net
Fri Apr 28 13:54:50 EDT 2006
Dave Cragg wrote:
>
>> Finally if I want a semi-permanent disk based "cache" - I guess I
>> should trap something using a front script? What would be the best
>> way to do this? Trap "getUrl"?, passing it if the url is not in the
>> disk based cache?
>
>
> I'd be wary of trapping geturl. This is a handler inside libUrl that
> gets called directly by the engine, and it contains some irregular
> syntax.
>
> Why not just have your own set of handlers for getting urls. Crude
> example:
> <...>
> Sorry, no space for the isInCache, getFromCache, putInCache handlers.
> :-)
>
And the most important - invalidateCache() and invalidateCacheEntry()
Coming up with the right strategy to do this may be the hardest part,
depending on your application :-)
It can certainly lead to some hair-pulling debugging sessions (he said,
displaying scars to prove it :-)
--
Alex Tweedly http://www.tweedly.net
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.5.1/326 - Release Date: 27/04/2006
More information about the use-livecode
mailing list