Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
OPcache Dashboard
=================
This fork of OPcache Dashboard is fully PHP 8.0.x compatible.

Set up properly and monitor your Zend OPcache with this dashboard that will help you checking memory, hits and status, configuring for optimal performance (warning you when cache full, validation, etc.) and reseting one or all scripts with one click.

Installation
Expand Down
6 changes: 3 additions & 3 deletions opcache.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function size_for_humans($bytes)
function getOffsetWhereStringsAreEqual($a, $b)
{
$i = 0;
while (strlen($a) && strlen($b) && strlen($a) > $i && $a{$i} === $b{$i}) {
while (strlen($a) && strlen($b) && strlen($a) > $i && $a[$i] === $b[$i]) {
$i++;
}

Expand Down Expand Up @@ -245,7 +245,7 @@ function getStringFromPropertyAndValue($property, $value)
<th>Path</th>
</tr>
<?php
uasort($status['scripts'], function ($a, $b) { return $a['hits'] < $b ['hits']; });
uasort($status['scripts'], function ($a, $b) { return $b['hits'] <=> $a ['hits']; });

$offset = null;
$previousKey = null;
Expand All @@ -272,7 +272,7 @@ function getStringFromPropertyAndValue($property, $value)
</table>
</div>

<script src="//code.jquery.com/jquery.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script>
</body>
</html>