<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 1, 2017 at 3:16 AM, Johan Brichau <span dir="ltr"><<a href="mailto:johan@inceptive.be" target="_blank">johan@inceptive.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">Hi Mariano,<div><br></div><div>You indeed need to replace the cache when you changed the configuration values.</div><div>This is how it’s done in the configuration interface (see implementation of #replaceCache).</div><div><br></div><div>I agree it’s not intuitive. </div><div>Perhaps we should expand WAAdmin with specific methods to configure a cache, such that the cache is reset afterwards.</div><div>I wrote down an issue: <a href="https://github.com/SeasideSt/Seaside/issues/937" target="_blank">https://github.com/<wbr>SeasideSt/Seaside/issues/937</a></div><div><br></div></div></blockquote><div><br></div><div>Thanks Johan for confirming that what I was finally doing was correct. </div><div><br></div><div>Another alternative to your approach on the issue above, what if we provide a:</div><div><br></div><div>register: self asApplicationAt: aSuffix <b>configuration: aConfiguration</b><br></div><div><br></div><div>So that the things get created from scratch with the correct configuration? </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div></div><div>cheers</div><div>Johan</div><div><br></div><div><div><blockquote type="cite"><div><div class="gmail-h5"><div>On 31 Jul 2017, at 21:49, Mariano Martinez Peck <<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>> wrote:</div><br class="gmail-m_5581192733143814756Apple-interchange-newline"></div></div><div><div><div class="gmail-h5"><div dir="ltr">Hi guys,<div><br></div><div>I was not yet able to correctly set session expiration timeout for my app. I was doing something like this:</div><div><br></div><div>------------</div><div><br></div><div><span style="white-space:pre-wrap">    </span>app := <b>(WAAdmin register: self asApplicationAt: aSuffix)</b></div><div><div><span style="white-space:pre-wrap">           </span>preferenceAt: #sessionClass put: DpWebSession;</div><div><span style="white-space:pre-wrap">           </span>preferenceAt: #actionPhaseContinuationClass put: FaCallbackProcessingActionCont<wbr>inuation;</div><div><span style="white-space:pre-wrap">              </span>preferenceAt: #trackingStrategy put: FaWAQueryFieldAndCookieTrackin<wbr>gStrategy new;</div><div><span style="white-space:pre-wrap">             </span>yourself.</div><div><b><br></b></div><div><b>app configuration at: #maximumRelativeAge put: seconds.</b></div><div><b>app configuration at: #maximumAbsoluteAge put: 0.</b></div><div><br></div><div>"much more here to continue  customizing the app" </div><div>....</div><div><br></div><div><br></div><div>-----------</div><div><br></div><div><br></div><div>What is the problem? That #register:asApplicationAt: ends up creating the cache BEFORE I can change the configuration...   so the 'cache' is created with the default 1800 rather than with what I want. </div><div><br></div><div>The workaround is to either do "<span style="font-size:12.8px">app cache: app createCache"   or "app initialize" once I am done with all my configuration... but it looks... weird...</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thoughts? </span></div><div><br></div><div><br></div><div><br></div>-- <br><div class="gmail-m_5581192733143814756gmail_signature">Mariano<br><a href="http://marianopeck.wordpress.com/" target="_blank">http://marianopeck.wordpress.<wbr>com</a><br></div>
</div></div></div></div>
______________________________<wbr>_________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.<wbr>squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a><br></div></blockquote></div><br></div></div><br>______________________________<wbr>_________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.<wbr>squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="noreferrer" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br></div>
</div></div>