Search code examples
perlapachemod-perl

How do I get mod_perl to recognize changes to my application?


I'm running an apache2 / mod_perl2 combo on our development server.

When I'm developing, my changes are instantly reflected in the webpage I'm working on. I assumed mod_perl was being clever and was reloading files when they were changed.

But now another developer is working on a different part of the system and their changes are not picked up by mod_perl. He has to restart apache before he can see his changes.

Is there a way to disable caching on our development server, or get mod_perl to pick up his changes?

Thanks.

EDIT: I'm editing file directly on the dev server using VI, the other developer has mounted their dev directory via samba, and is editing their files in windows. This seems to be the difference that prevents mod_perl picking up changes.


Solution

  • I just read a nice blog post that sums up all possible ways to achieve this: How not to restart mod_perl servers by Jonathan Swartz