Heh. We're only using basic templates/snippets, and url rewriting/ dispatching. We're not using lift forms, ajax, comet, mapper etc. We just wanted a templating engine that worked well with Scala, and Lift seems to do that pretty nicely
I'm stubborn - I'm holding to my views that web servers should be as stateless as possible - using state for callbacks doesn't sit well with me, yet. - Alex On Dec 16, 4:35 pm, David Pollak <feeder.of.the.be...@gmail.com> wrote: > On Wed, Dec 16, 2009 at 1:30 PM, Alex Black <a...@alexblack.ca> wrote: > > cool, thanks for the info. We're not using those features yet, so > > we'll leave this off for now. > > If you're not "using those features" what part of Lift are you using? > > Can you send the raw HTML (via view source in your browser) of a page? I'm > betting that you're using some GUID <-> function stuff... it's pretty hard > not to in Lift. > > > > > > > On Dec 16, 4:03 pm, David Pollak <feeder.of.the.be...@gmail.com> > > wrote: > > > On Wed, Dec 16, 2009 at 5:56 AM, Alex Black <a...@alexblack.ca> wrote: > > > > > Are you using any Comet or Ajax or any Lift generated form elements? > > If > > > > you > > > > > are using any of these (anything where Lift is storing a function on > > the > > > > > server-side and presenting the function as a GUID on the client > > side), > > > > then > > > > > it is strongly advised that you enable GC. > > > > To disable Garbage Collection: > > > > LiftRules.enableLiftGC = false > > > > Each GUID that's shipped to the client for form callbacks, Comet > > callbacks, > > > Ajax callbacks, JSON callbacks, etc. is associated with a function. That > > > function is stored in a session-specific table that maps from GUIDs to > > > functions. Without garbage collection, the functions associated with the > > > GUIDs build up for the duration of a given session. The can be memory > > > intensive. So, we've implemented a mechanism where every 75 seconds (a > > > tunable parameter), the browser does an Ajax call to the server saying > > "page > > > XXXX" is still live. All GUIDs associated with that page are "kept > > > around." If a GUID hasn't been seen on a page in 10 minutes and is not > > > associated with a Comet component that's still live, then the function is > > > removed from the GUID mapping table and will ultimately be removed from > > > memory by the JVM garbage collector. > > > > > We're not using Comet or Lift generated form elements. We are using a > > > > jQuery plugin to do autocomplete which uses ajax. Can you tell me a > > > > bit more about GC, is it a jQuery thing? > > > > > I've turned off auto ajax also: > > > > > // For now, disable all Lift ajax stuff > > > > LiftRules.autoIncludeAjax = session => false > > > > > So, I get this error on every page: > > > > > Error: lift_successRegisterGC is not defined > > > > > and this error on pages that don't use jQuery: > > > > > Error: jQuery is not defined > > > > > > > Thanks! > > > > > > > - Alex > > > > > > > -- > > > > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > > > "Lift" group. > > > > > > To post to this group, send email to lift...@googlegroups.com. > > > > > > To unsubscribe from this group, send email to > > > > > > liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com> > > <liftweb%2bunsubscr...@googlegroups.com<liftweb%252bunsubscr...@googlegroups.com> > > > > > <liftweb%2bunsubscr...@googlegroups.com<liftweb%252bunsubscr...@googlegroups.com> > > <liftweb%252bunsubscr...@googlegroups.com<liftweb%25252bunsubscr...@googlegroups.com> > > > > > > > . > > > > > > For more options, visit this group at > > > > > >http://groups.google.com/group/liftweb?hl=en. > > > > > > -- > > > > > Lift, the simply functional web frameworkhttp://liftweb.net > > > > > Beginning Scalahttp://www.apress.com/book/view/1430219890 > > > > > Follow me:http://twitter.com/dpp > > > > > Surf the harmonics > > > > > -- > > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Lift" group. > > > > To post to this group, send email to lift...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com> > > <liftweb%2bunsubscr...@googlegroups.com<liftweb%252bunsubscr...@googlegroups.com> > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/liftweb?hl=en. > > > > -- > > > Lift, the simply functional web frameworkhttp://liftweb.net > > > Beginning Scalahttp://www.apress.com/book/view/1430219890 > > > Follow me:http://twitter.com/dpp > > > Surf the harmonics > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Lift" group. > > To post to this group, send email to lift...@googlegroups.com. > > To unsubscribe from this group, send email to > > liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/liftweb?hl=en. > > -- > Lift, the simply functional web frameworkhttp://liftweb.net > Beginning Scalahttp://www.apress.com/book/view/1430219890 > Follow me:http://twitter.com/dpp > Surf the harmonics -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.