PSP Caching

  • Thread starter Johnson Mpeirwe
  • Start date
J

Johnson Mpeirwe

Hello All,

How do I stop caching of Python Server Pages (or whatever causes changes
in a page not to be noticed in a web browser)? I am new to developing
web applications in Python and after looking at implementations of PSP
like Spyce (which I believed introduces new unnecessary non-PSP syntax),
I decided to write my own PSP applications from scratch. When I modify a
file, I keep getting the old results until I intentionally introduce an
error (e.g parse error) and correct it after to have the changes
noticed. There's no proxy (I am working on a windows machine unplugged
from the network). I have Googled and no documents seem to talk about
this. Is there any particular mod_python directive I must set in my
Apache configuration to fix this?

Any help will be highly appreciated.

Johnson
 
S

Simon Forman

Hello All,

How do I stop caching of Python Server Pages (or whatever causes changes
in a page not to be noticed in a web browser)? I am new to developing
web applications in Python and after looking at implementations of PSP
like Spyce (which I believed introduces new unnecessary non-PSP syntax),
I decided to write my own PSP applications from scratch. When I modify a
file, I keep getting the old results until I intentionally introduce an
error (e.g parse error) and correct it after to have the changes
noticed. There's no proxy (I am working on a windows machine unplugged
from the network). I have Googled and no documents seem to talk about
this. Is there any particular mod_python directive I must set in my
Apache configuration to fix this?

Any help will be highly appreciated.

Johnson

I don't know much about caching with apache, but the answer mght be on
this page: http://httpd.apache.org/docs/2.2/caching.html

Meanwhile, couldn't you just send apache a restart signal when you
modify your code?

HTH,
~Simon
 
J

Johnson Mpeirwe

Thanks Simon,

I got around this behavior by adding "MaxRequestsPerChild 1" (default value
of this is 0) to my httpd.conf to limit the number of requests a child server
process will handle before it dies but I think it is important to keep it 0 in
production environment.

Regards,
Johnson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top