Re: Cached vars

2004-07-09 Thread Stas Bekman
Geoffrey Young wrote: Ok. Working through the docs(converting to mp2-API) the following question came to my mind: Are there any rules, which (response-)method is in which module? - no_cache is found in Apache::RequestUtil - update_mtime/set_last_modified are found in Apache::Response - content_t

Re: Cached vars

2004-07-09 Thread Stas Bekman
Tom Schindl wrote: You set it explicitly, as in your example. Again, you need to use the special methods only for some of the headers. May be that section should explicitly list all those special headers. Patches are welcome. So far I've identified the following methods: Apache::ResquestUtil * n

Re: Cached vars

2004-07-09 Thread Geoffrey Young
> Ok. Working through the docs(converting to mp2-API) the following > question came to my mind: > > Are there any rules, which (response-)method is in which module? > - no_cache is found in Apache::RequestUtil > - update_mtime/set_last_modified are found in Apache::Response > - content_type

Re: Cached vars

2004-07-09 Thread Tom Schindl
Stas Bekman wrote: Tom Schindl wrote: Stas Bekman wrote: Tom Schindl wrote: [...] The very first URL, that you've quoted Tom, mentions that for certain headers you ought to use special Apache methods. Which is the case for content_type, no_cache and a few others. Apache does more things than jus

Re: Cached vars

2004-07-09 Thread Tom Schindl
Stas Bekman wrote: [...] You set it explicitly, as in your example. Again, you need to use the special methods only for some of the headers. May be that section should explicitly list all those special headers. Patches are welcome. I forgot that we have a whole chapter on that topic: http://per

Re: Cached vars

2004-07-09 Thread Stas Bekman
Tom Schindl wrote: Stas Bekman wrote: Tom Schindl wrote: [...] The very first URL, that you've quoted Tom, mentions that for certain headers you ought to use special Apache methods. Which is the case for content_type, no_cache and a few others. Apache does more things than just setting those hea

Re: Cached vars

2004-07-09 Thread Tom Schindl
Stas Bekman wrote: Tom Schindl wrote: [...] The very first URL, that you've quoted Tom, mentions that for certain headers you ought to use special Apache methods. Which is the case for content_type, no_cache and a few others. Apache does more things than just setting those headers. Your suggesti

Re: Cached vars

2004-07-09 Thread Tom Schindl
eck=0, pre-check=0", "Pragma"=> "no-cache", "Character-Set" => "windows-1251", "Content-Type" => "text/html; charset=windows-1251", }; return $self; } sub print { my $self = shift;

Re: Cached vars

2004-07-09 Thread Stas Bekman
Tom Schindl wrote: Hi, why are you not using the header functions provided by mod_perl, the problem you're having is described here: http://perl.apache.org/docs/2.0/user/coding/coding.html#Generating_HTTP_Response_Headers Things used here: http://perl.apache.org/docs/2.0/api/APR/Table.html#C_set_

Re: Cached vars

2004-07-09 Thread Tom Schindl
eck=0, pre-check=0", "Pragma"=> "no-cache", "Character-Set" => "windows-1251", "Content-Type" => "text/html; charset=windows-1251", }; return $self; } sub print { my $self = shift; print

Re: Cached vars

2004-07-08 Thread Vadim
", $self->{headers}->{$_}, "\n" for keys %{ $self->{headers} }; print "\n"; } package main; use strict; use warnings; our $HEADERS = new Headers; $HEADERS->print(); print 1; - > On Thu, 2004-07-08 at 12:09, Vadim

Re: Cached vars

2004-07-08 Thread Perrin Harkins
On Thu, 2004-07-08 at 12:09, Vadim wrote: > Are there any way to dump all cached vars for scripts under mod_perl? Can you explain what you mean by "cached vars"? Are you talking about global variables? - Perrin -- Report problems: http://perl.apache.org/bugs/ Mail li

Re: Cached vars

2004-07-08 Thread Ruslan U. Zakirov
Vadim пwrote: Are there any way to dump all cached vars for scripts under mod_perl? perldoc Apache::Status ? -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Cached vars

2004-07-08 Thread Vadim
Are there any way to dump all cached vars for scripts under mod_perl? -- Vad -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html