Feb 20, 2013; 17:18
Adam de Zoete
L8.6 cache expiry
Hi,
I'm after some cache expiry that actually expires at a given point in time. This seems to be missing from L8.6 and currently nothing expires=85full stop.
I've had a look through Cache.lasso in LassoLibraries and it seems the -expires parameter of [cache] and [cache_object] doesn't work.
From inside the cache_exists tag the following doesn't really make much sense.
// True if no expiration is specified.
!local_defined('expires') || (integer(#expires) <= 0) ? return(true);
Looks like a bug for a feature that was never fully implimented. Looking at that, I'd probably say better not to use -expires at the moment.
I know that the cache tags were only partially working in earlier versions of Lasso, so were rebuilt by Lassosoft with the help of Johan Solve. Has anyone got a version that works with the -expires tag?
I'm confused of the intended function of these tags as in previous versions siteAdmin used to contain an option for Cache Expiration - since been removed. This is still visible in the _Cache_Preference global, but not available in siteAdmin.
map: (_cache_totalstoragelimit)=(52428800), (_cache_enable)=(Y), (_cache_expire)=(432000), (_cache_limit)=(32768), (_cache_expirefrequency)=(hourly), (_cache_host)=(N)
The cache tags currently don't call on _cache_expire or make use of any expires when cache_exists is called. I fear this was replaced in favour of the cache_maintenance tag and it's garbage collection for reasons that the -expires parameter wouldn't previously work.
Does anyone have any pointers or suggestions? Am I looking at rebuilding the tags to honour expiration, if even possible.
Adam
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Feb 20, 2013; 12:22
Steve Piercy - Web Site Builder
Re: L8.6 cache expiry