myaaghubi / PHP-Frameworks-Bench

A library to make benchmarks from PHP frameworks.
GNU General Public License v2.0
109 stars 4 forks source link

Don't clean the OPCache #36

Closed joanhey closed 1 year ago

joanhey commented 1 year ago

Actually it's calling opcache_reset() from the CLI, so clean only the CLI cache, but never in the server.

https://github.com/myaaghubi/PHP-Frameworks-Bench/blob/main/base/hello_world.sh#L70

We need to create a file in the server to clean, and call it with CURL.

Also will be good to after clean the opcache, call the url of the new framework with CURL, to recache it for the new framework. And check that the response is OK.