Say I have a rather large associative array of 100k elements like so:
$resources = array(
'stone'=>'current_stone.gif',
'stick'=>'uglystick.jpg',
...
);
Stored in a file called resources.php and it will never change at runtime.
I would like to have this data in Zend opcache so as to share it across all processes (saving memory) and possibly speed up the lookup speed.
My current assumption is that, in this form, this array will not get stored in opcache as it's not defined as a static structure anywhere.
How would I go about making sure this data gets into opcache?