docker-dolibarr icon indicating copy to clipboard operation
docker-dolibarr copied to clipboard

Any interest in using opcache

Open FallingSnow opened this issue 2 years ago • 3 comments

Would dolibarr run any faster with opcache enabled?

Seems fairly simple to enable.

RUN docker-php-ext-configure opcache --enable-opcache \
    && docker-php-ext-install opcache

Results from https://github.com/cavo789/docker_php_opcache suggest a 30% speed improvement in that benchmark.

FallingSnow avatar Sep 28 '22 22:09 FallingSnow

Hi, seems interesting. Quite easy to implement : can you benchmark it and open a pull request ?

Following these guidelines : https://github.com/tuxgasy/docker-dolibarr/blob/master/CONTRIBUTING.md

mathieupotier avatar Oct 04 '22 17:10 mathieupotier

Sorry but I don't use dolibarr (though I hope I will in the future). Only came across it in passing and noticed this docker image didn't use opcache. I don't have time to benchmark it at the moment.

FallingSnow avatar Oct 05 '22 02:10 FallingSnow

I'll probably create a PR soon to add OPCache optims, thanks for suggest.

mathieupotier avatar Oct 09 '22 22:10 mathieupotier