You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+20-6
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,13 @@ There are two ways to getting started using this gui:
13
13
14
14
#### Copy/clone this repo
15
15
16
-
The easiest way to start using the opcache-gui is to clone this repo, or simply to copy/paste/download the `index.php` file, to a location which your web server can load. Then point your browser to that location, such as `https://www.example.com/opcache/index.php`.
16
+
The easiest way to start using the opcache-gui is to clone this repo, or simply copy/paste/download the `index.php` file to a location which your web server can load. Then point your browser to that location, such as `https://www.example.com/opcache/index.php`.
17
17
18
18
#### Install via composer
19
19
20
20
You can include the files with [Composer](https://getcomposer.org/) by running the command `composer require amnuts/opcache-gui`.
21
21
22
-
Once in your `vendor` directory, there are numerous ways in which you can use the interface. For example if you're using a framework such as Symfony or Laravel, you could load opcache-gui into a `Controller`. Your requirements of setting it up within your framework of choice will vary, so it's not really possible to detail how to do that within this readme... but I have faith in your ability to figure it out!
22
+
Once in your `vendor` directory, there are numerous ways in which you can use the interface. For example, if you're using a framework such as Symfony or Laravel, you could load opcache-gui into a `Controller`. Your requirements of setting it up within your framework of choice will vary, so it's not really possible to detail how to do that within this readme... but I have faith in your ability to figure it out!
23
23
24
24
The namespace used for the class is `Amnuts\Opcache`, so once the dependency is in your `autoload.php` you can use the `\Amnuts\Opcache\Service` class. For example, you could do something like:
25
25
@@ -79,7 +79,8 @@ $options = [
79
79
'highlight' => [
80
80
'memory' => true, // show the memory chart/big number
81
81
'hits' => true, // show the hit rate chart/big number
82
-
'keys' => true // show the keys used chart/big number
82
+
'keys' => true, // show the keys used chart/big number
83
+
'jit' => true // show the jit buffer chart/big number
83
84
]
84
85
];
85
86
```
@@ -116,9 +117,9 @@ The core PHP template used in the build process, and that acts to pass various b
116
117
117
118
### Overview
118
119
119
-
The overview will show you all the core information. From here you'll be able to see what host and platform you're running on, what version of OPcache you're using, when it was last reset, the functions that are available, all the directives and all the statistics associated with the OPcache (number of hits, memory used, free and wasted memory, etc.)
120
+
The overview will show you all the core information. From here you'll be able to see what host and platform you're running on, what version of OPcache you're using, when it was last reset, the functions and directives available (with links to the php.net manual), and all the statistics associated with the OPcache (number of hits, memory used, free and wasted memory, and more).
120
121
121
-

122
+

122
123
123
124
### Cached files
124
125
@@ -154,10 +155,23 @@ Resetting can be disabled with the use of the configuration options `allow_reset
154
155
155
156
The interface can poll every so often to get a fresh look at the opcache. You can change how often this happens with the configuration option `refresh_time`, which is in seconds.
156
157
157
-
When the real-time updates are active the interface will automatically update all the values as needed. Also, if you choose to invalidate any files or reset the cache it will do this without reloading the page, so the search term you've entered, or the page you've navigated to do not get reset. If the real-time update is not on then the page will reload on any invalidation usage.
158
+
When the real-time updates are active, the interface will automatically update all the values as needed.
159
+
160
+
Also, if you choose to invalidate any files or reset the cache it will do this without reloading the page, so the search term you've entered, or the page to which you've navigated do not get reset. If the real-time update is not on then the page will reload on any invalidation usage.
158
161
159
162
## Releases
160
163
164
+
**Version 3.3.0**\
165
+
Mostly added JIT information for PHP 8:
166
+
* Added JIT buffer graph (optionally able to turn it off)
167
+
* Added JIT information to the memory usage panel
168
+
* Improved the JIT information shown in the directives
169
+
* Fixed a long outstanding interface bug that allowed you to see the 'invalidate all' link even if invalidation option was `false`
170
+
171
+
If you want to enable JIT you have to put in a value for the [opcache.jit_buffer_size](https://www.php.net/manual/en/opcache.configuration.php#ini.opcache.jit-buffer-size) ini setting, else it's disabled by default.
172
+
173
+
If you're not using PHP 8, the interface will compensate and not show the additional JIT information.
174
+
161
175
**Version 3.2.1**\
162
176
Minor maintenance release to:
163
177
* Put back "spaceship operator" so PHP8 doesn't give deprecation warnings (must have been accidentally removed in a previous commit)
0 commit comments