Hmm.. Great catch. Wondering if there is or can be some kind of time-
stamp-of-the-deployed-app thing that can be put to use.

Not sure but one option can be to always "touch" web.xml during
deployment and then use the timestamp to determine if the memcache has
to be invalidated. And do this only during application startup to
avoid any regular overhead...


--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.com


On Nov 2, 7:57 am, Stephen Johnson <[email protected]> wrote:
> Wouldn't this reset the cache every time a new instance gets started not
> just when a new version is deployed.
>
> On Mon, Nov 1, 2010 at 6:27 PM, MasterGaurav <[email protected]> wrote:
> > If you are using a Java application, you can do a memcache reset in
> > the context startup.
>
> > Look at the description of the interface
> > javax.servlet.ServletContextListener.
>
> > --
> > Happy Hacking,
> > Gaurav Vaish
> >http://www.mastergaurav.com
>
> > On Nov 1, 11:05 pm, pdknsk <[email protected]> wrote:
> > > I'd like to automatically reset memcache immediately when I've
> > > uploaded a new version. Is this possible? I currently have a /reset
> > > script which I run manually every time. It's a bit tedious and I'd
> > > like to automate it, especially since there can be a delay of up to a
> > > minute between a deployment success message and the updated version
> > > actually being available. Thanks!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-appengine%[email protected]>
> > .
> > For more options, visit this group at
> >http://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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to