Sharing data between apache modules
Is there a way to exchange data between apache modules?
Example:
-
mod_a
does the calculation and gets some number as a result. -
mod_b
does another calculation and I need to sum it with the result frommod_a
.
What is the way to do this?
I tried to pass it through the table r->notes
, but with no success. The data from both modules is visible in the log, but they do not see each other.
PS mod_b
always executes the job after the completion of processing mod_a
within one request.
In my case, was mod_a
setting the value inside apache internal redirect, so there was a different request entry "r" (and table "notes"). The solution changed the value r->notes
to r->prev->notes
to set the value to the original query table.