Tom
--
To unsubscribe, reply using "remove me" as the subject.
Also, my previous comment still applies. If you're going to cache
something and reuse it, then it's much better to cache the SoyTofu
object than to cache the SoyFileSet (because the former is the result
of compiling the latter).
On Apr 2, 2:51 pm, Tom Ball <tb...@google.com> wrote:
> I'm currently caching the SoyFileSet and reusing it, but on App Engine
> there's no guarantee that global state from one request will be available to
> another (in fact, if there is more than a second between requests, odds are
> the shared state is gone). If a SoyFileSet could be persisted to the App
> Engine datastore, then it would be accessible by all requests. It's not the
> end of the world if it can't be persisted, but if not, it's worth
> considering as a future enhancement to better support App Engine.
>
> Tom
>
Sorry to dig up this old topic, but i have exactly the same issue than Tom when using the closure templates on App Engine.As Tom pointed out, SoyTofu objects are not Serializable which means they can't be persisted through App engine's datastore. That's an issue because cached SoyTofu objects are all lost when the App Engine's instance is "killed" (ie. after a couple seconds of inactivity or when an error occured).Is there any plan of making SoyTofyu objects Serializable in a future release ?Thanks,Romain
--
---
You received this message because you are subscribed to the Google Groups "Closure Templates Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-templates-...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.