Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added opcache.php (and data-sample.php) from https://github.com/rlerdorf/opcache-status.git into the ServerPerformance files. (htdocs role)
However, I changed the opcache.php script to use our already-in-use jquery and d3 in the ServerPerformance directory. Rasmus' version pulls files from cloudflare which is not ideal. In a quick test of functionality, it seems to be happy with js library versions.
changed to
./js/d3.js (v 3.5.14)
./js/jquery-3.1.0.min.js
data-sample.php just provides a mock implementation of the opcache functions in case opcache is disabled - so you get a chart instead of an error. There are no external resources.
##Testing
See https://demo.qualitybox.us/ServerPerformance/opcache.php for an example.
##ToDo
add some sort of restriction on who can access /ServerPerformance