APC page caching in the presence of a dynamic "require"
Posted: Fri Jul 15, 2011 12:24 pm
Hi,
I have a question to all those who have used tools such as APC/e-Accelerator and such.
How would these cachers behave in the presence of such code.
Will the page containing the function above be effectively cached? Assuming that the "$pathname" changes all the time. Does APC cache the "require" statements separately or the page as a whole?
If I pass different values to "$pathname" will the cached bytecode be cast away on every run, effectively rendering it useless?
Thanks,
Sefer.
I have a question to all those who have used tools such as APC/e-Accelerator and such.
How would these cachers behave in the presence of such code.
Code: Select all
<?php
function my_func($pathname)
{
require "$pathname";
}
?>
If I pass different values to "$pathname" will the cached bytecode be cast away on every run, effectively rendering it useless?
Thanks,
Sefer.