I have been doing some research on APC Caching with PHP and found that conditional includes just don't work. Like:
if($a) {
include('a.php');
} else {
include('b.php');
}
My question is: Can I get around this with variable includes? Such as:
if($a) {
$file = 'a.php';
} else {
$file = 'b.php';
}
include($file);
Would the latter code be APC-cached successfully?