[Helma-user] res.stop?

Michael Platzer michael.platzer at knallgrau.at
Tue Jan 9 15:35:16 CET 2007


Hannes Wallnoefer schrieb:
> The (only) way to do this is to return from the main action. IMO
> adding the feature you request would have negative impact on coding
> style.
>   
I asked for this feature, since i want to implement a serverside caching 
mechanism, as i mentioned here [1]. I implement the logic, whether to 
return the response immediately from the cache or not in the 
onRequest-method. Because I then decided to choose a disk-based 
mechanism, I use res.forward(..), which has exactly the wanted 
side-effect of stopping the further processing of the request. So, in 
that respect I don't really need that feature anymore.

But if a developer wants to implement a similar caching mechanism, but 
stores the response in memory (e.g. in app.data), then she would not 
have any method at hand to stop the further processing of the request. 
So, imo this feature still make sense. But, as I mentioned, I personally 
don't need it for now.

thanks for the reply anyways,
  michi

[1] http://helma.org/pipermail/helma-dev/2007-January/003233.html


More information about the Helma-user mailing list