FYI - we have this installed with eAccelerator. It was kind of tricky:
- You need eAccelerator 0.9.5.3 or below. The _get and _put caching was dropped from 0.9.6 and above.
- 0.9.5.3 only works with PHP 5.2.x It doesn't work or install with 5.3.x
- The note in the first post of this is correct. You need the extra flag in during PHP compile.
You can test to see if eAccelerator is working correctly (or will work correctly with this mod by dropping the following code into a php file and running it:
Code:
<?php
$rfunc = get_extension_funcs( 'eaccelerator' );
print_r($rfunc);
function ea ($str)
{
eaccelerator_put("testkey", $str);
for ($i = 0; $i < 1e5; $i++)
{
$r = eaccelerator_get("testkey");
}
return $r;
}
$str = str_repeat("1234567890", 1024); // 10 KB
$r = ea($str);
echo strlen($r);
?>
If you get an error. You have some work to do...
I hope this mod is worth it