Aug 17, 2013; 13:15
=?iso-8859-1?Q?Mikael_Sundstr=F6m?=
Deleting all caches (8.5.6)
Dear Lassoers
For many years I have had a page that is called once a day to remove all caches across the site. When updating to 8.5.6, this page has suddenly stopped working. Any help would be appreciated. The code looks like this:
<?LassoScript
local('caches'=array);
iterate(globals->keys, local('gkey'));
if(#gkey -> beginswith('_cache') && #gkey -> endswith('_store'));
#caches -> insert(#gkey);
/if;
/iterate;
#caches -> size; // reports the total number of cache objects
iterate(#caches, local('cache'));
globals->remove(#cache);
#cache -= '_store';
globals->remove(#cache + '_date');
globals->remove(#cache + '_fetch');
globals->remove(#cache + '_content');
/iterate;
?>
All the best,
Mike
#############################################################
Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013
#############################################################
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>
Aug 17, 2013; 04:27
Steve Piercy - Web Site Builder
Re: Deleting all caches (8.5.6)
Aug 17, 2013; 23:06
=?iso-8859-1?Q?Mikael_Sundstr=F6m?=
Deleting all caches (8.5.6)
Aug 17, 2013; 18:36
Steve Piercy - Web Site Builder
Re: Deleting all caches (8.5.6)