Sep 12
Maxwell Klein Lasso 9 equivalent to global site variables
Sep 12, 2015; 11:34
Maxwell Klein
Lasso 9 equivalent to global site variables
In Lasso 8.6 I use the following technique to store a site-wide variable that only needs to be updated every four hours:
cache( -name='regions', -expires=3600*4);
inline( -findall, -database='mydatabase', -table='regions', -keyfield='id', -maxrecords='all' );
global('vl_regions' = records_map(-type='array' ) );
/inline;
/cache;
The "vl_regions" map is fairly compact and is used for building a popup menu that gets displayed often throughout a website. This may not be the best method in Lasso 8, but what would be recommended in Lasso 9?
I’ve done a preliminary scan of the LassoTalk Nabble archive and get the feeling this is may not be a straightforward syntax conversion. Will absorbing this Threading doc put me on the right track?
http://lassoguide.com/language/threading.html
Thanks,
Max
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Sep 12
Brad Lindsay Re: Lasso 9 equivalent to global site variables
Sep 12, 2015; 17:50
Brad Lindsay
Re: Lasso 9 equivalent to global site variables
Sep 12
Maxwell Klein Re: Lasso 9 equivalent to global site variables
Sep 12, 2015; 19:58
Maxwell Klein
Re: Lasso 9 equivalent to global site variables
Sep 13
Jolle Carlestam Re: Lasso 9 equivalent to global site variables
Sep 13, 2015; 09:00
Jolle Carlestam
Re: Lasso 9 equivalent to global site variables
Sep 13
Brad Lindsay Re: Lasso 9 equivalent to global site variables
Sep 13, 2015; 09:07
Brad Lindsay
Re: Lasso 9 equivalent to global site variables
Sep 14
Maxwell Klein Re: Lasso 9 equivalent to global site variables
Sep 14, 2015; 14:41
Maxwell Klein
Re: Lasso 9 equivalent to global site variables
Sep 15
Ke Carlton Re: Lasso 9 equivalent to global site variables
Sep 15, 2015; 02:35
Ke Carlton
Re: Lasso 9 equivalent to global site variables
Sep 15
Maxwell Klein Re: Lasso 9 equivalent to global site variables
Sep 15, 2015; 09:18
Maxwell Klein
Re: Lasso 9 equivalent to global site variables