Zend OPcache Configuration OXID

hello oxid developers,

im playing with performance optimization for my oxid shop and configured my server to run with zend opcache.

im just wondering whats about the /tmp directory.
looks like oxid put there the smarty export which i think makes sence to optimize with opcache or do i miss something here?

  • EDIT:

and whats about the /admin directory?
opcache on or off for it?

cheers binary

Hey @binary,

looks like opcache was introduced to PHP 5.5 and has to be supported by the application. As hosting providers still use PHP 5.4 and 5.3, also Zend Guard support was offered only recently for 5.5 and 5.6, it may take a while until PHP features like opcache may be supported by applications like OXID. It is a main consideration to be downwards compatible and to give long term support over hunting for every new feature and technology. Hope this is comprehensible :wink:

Marco

hey marco,

thanks for the replay,
i played yesterday quite a while with the settings and tested few things.
it seems like everything works fine, also with opcaching /tmp and /admin.
for monitoring there is a nice gui i found yesterday on github: https://github.com/amnuts/opcache-gui

update:

here is my config, maybe helps someone later:

zend_extension=/usr/local/php_extensions/php5.6/opcache.so
opcache.blacklist_filename=/binary/rocks/php5.6_opcache_blacklist.txt
opcache.use_cwd =true
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1

cheers
binary

Aye, that looks great. Cheers! :slight_smile: