in reply to Re^2: mod_perl, and weird caching
in thread mod_perl, and weird caching
Sure,
You would make your module generic, so that it works with all of your vhosts. You would then configure the code based on some vhost specific setting. So for example, if you have a vhost-specific configuration file indicating the graphics file names for specific UI components, you could configure that file name in a per-vhost PerlVar.
In your code, you could access this per-vhost setting. You could then use that setting to identify the location of the configuration file for that vhost, read the configuration, and respond.
Basically, a persistent environment like mod_perl assumes that you are not changing the foundation that you are building the application upon. In order for that to hold true, you need to isolate the moving parts into something that you pass through the building infrastructure.
--MidLifeXis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: mod_perl, and weird caching
by ultranerds (Hermit) on Feb 04, 2014 at 19:50 UTC | |
by MidLifeXis (Monsignor) on Feb 04, 2014 at 20:42 UTC | |
by ultranerds (Hermit) on Feb 04, 2014 at 21:15 UTC | |
by MidLifeXis (Monsignor) on Feb 04, 2014 at 21:18 UTC | |
by ultranerds (Hermit) on Feb 05, 2014 at 07:55 UTC | |
|