phpopcode-cache

Simple PHP opcode caching solution which does not need compilation?


I have a PHP site where all pages include an 57K generated PHP file. I'm thinking of using an opcode cache, so the file doesn't need to be parsed for every time a page is loaded (I assume loading the already parsed file would be faster than reading the 57K source file).

APC seems to be good candidate for this, but according to phpinfo my Godaddy shared hosting doesn't have it compiled in and I can't compile and install it in a shared hosting enviroment. The Zend framework is installed, but according to the docs it also needs APC or an other opcode cache as a backend.

What other options do I have to perform opcode caching? Is there a PHP-only opcode caching solution which I could simply FTP to godaddy?


Solution

  • Is there a PHP-only opcode caching solution which I could simply FTP to godaddy?

    Unfortunately, no. By the time a .php file runs, it's already too late as the interpret and compile actions have already been performed.

    Therefore, it must run as a PHP extension, which are compiled...