My experience with GAE Cashe is telling me that it really works
wanders just do not judge its  performance on first sight -test an
application with real high volume  traffic and you see it really
works.

--
nickmi...@gmail.com

On Feb 13, 8:47 pm, Jesaja Everling <jeverl...@gmail.com> wrote:
> The way I understand it, everything that is defined inside the main()
> function in the handler is also not cached.
> Thus you can still have your handler script cached, and have
> request-specific objects evaluated for each new request.
>
> Best Regards,
>
> Jesaja Everling
>
>
>
> On Sat, Feb 13, 2010 at 6:52 PM, dburns <drrnb...@gmail.com> wrote:
> > In Python at least, GAE looks for a function called main() to enable
> > app caching.  Simply rename main() to something else.
>
> > On Feb 13, 6:41 am, Eric Ka Ka Ng <ngk...@gmail.com> wrote:
> >> is it possible to 'disable' the app caching behavior?
>
> >> - eric
>
> >> On 12 February 2010 17:48, saintthor <saintt...@gmail.com> wrote:
>
> >> > see the demo in this page:http://code.google.com/intl/en/appengine/
> >> > docs/python/runtime.html#App_Caching
>
> >> > ### mymodule.py
> >> > counter = 0
> >> > def increment():
> >> >    global counter
> >> >    counter += 1
> >> >    return counter
>
> >> > ### myhandler.py
> >> > import mymodule
>
> >> > print "Content-Type: text/plain"
> >> > print ""
> >> > print "My number: " + str(mymodule.increment())
>
> >> > do you mean if the site has not accessed for some minutes, counter
> >> > will be reset to 0?
>
> >> > On 2月12日, 下午4时24分, Tim Hoffman <zutes...@gmail.com> wrote:
> >> >> App caching could last as little as a few minutes if your site is not
> >> >> used.
> >> >> In addition if multiple instances are run then only one instance will
> >> >> have the counter with the correct value.
>
> >> >> You should store your obj in the datastore and cache it in memcache.
>
> >> >> module level caching is really only useful for cacheable things for
> >> >> each instance,
> >> >> for example compiled templates.
>
> >> >> T
>
> >> >> On Feb 12, 3:34 pm, saintthor <saintt...@gmail.com> wrote:
>
> >> >> > ### mymodule.py
> >> >> > counter = LargeObj()
>
> >> >> > ### myhandler.py
> >> >> > import mymodule
>
> >> >> > print "Content-Type: text/plain"
> >> >> > print ""
> >> >> > print "My number: " + str(mymodule.counter)
>
> >> >> > if sizeof counter is greater than 1M, can it work?
>
> >> >> > if there is no request for days, will counter still be cached?
>
> >> > --
> >> > You received this message because you are subscribed to the Google 
> >> > Groups "Google App Engine" group.
> >> > To post to this group, send email to google-appeng...@googlegroups.com.
> >> > To unsubscribe from this group, send email to 
> >> > google-appengine+unsubscr...@googlegroups.com.
> >> > For more options, visit this group 
> >> > athttp://groups.google.com/group/google-appengine?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to