- This topic is empty.
-
AuthorPosts
-
February 13, 2023 at 7:59 pm #4167
Kenneth
GuestI used this one for a long time, but haven’t tested it for PHP 7 or 8 which I’m guessing it doesn’t support
https://github.com/rlerdorf/opcache-status
what are you guys using to monitoring OPcache or drill-down on script usage
February 13, 2023 at 8:01 pm #4168Christine
GuestThe cool thing it was only 1 file!
https://github.com/rlerdorf/opcache-status/blob/master/opcache.php
February 14, 2023 at 6:35 am #4171Nicholas
Guestnot updated in 9 years, you could spin the wheel and try on PHP 8 if you want 😀
February 15, 2023 at 6:05 am #4185Margaret
GuestThis one is also single file opcache.php
https://github.com/carlosbuenosvinos/opcache-dashboard
but not updated for 7 years.
February 19, 2023 at 11:50 am #4232Hannah
GuestI guess the PHP guru have all moved on to JS frameworks and SSGs? Or what
February 19, 2023 at 11:56 am #4233Jeffrey
Guestlol
February 19, 2023 at 7:29 pm #4235Michael
GuestCachetool is a newer beast that includes a CLI. I think some of the features might be overkill for a lightweight LEMP stack like SlickStack esp. since OPcache is set by default to expire PHP file contents within a few seconds, it doesn’t need tons of analysis.
February 19, 2023 at 7:31 pm #4236Michelle
Guestopcache-gui is a lighter script, I’m pretty sure it’s also a single-file script like the others mentioned top of this thread.
https://github.com/amnuts/opcache-gui
Kinda weird they called it
index.phpby default though? instead ofopcache.phpFebruary 20, 2023 at 11:13 am #4240John
Guestniiiiiceeeeeeee…..
April 8, 2024 at 6:54 pm #21433Catherine
GuestCachetools says:
CacheTool allows you to work with APCu, OPcache, and the file status cache through the CLI. It will connect to a FastCGI server (like PHP-FPM) and operate on its cache.
Why is this useful?
Maybe you want to clear the bytecode cache without reloading php-fpm or using a web endpoint
Maybe you want to have a cron which deals with cache invalidation
Maybe you want to see some statistics right from the console
And many more…
Note that, unlike APCu and Opcache, the file status cache is per-process rather than stored in shared memory. This means that running stat:clear against PHP-FPM will only affect whichever FPM worker responds to the request, not the whole pool. Julien Pauli has written a post with more details on how the file status cache operates.I have never had to “restart PHP-FPM” to clear Opcache, you can do it with PHP function???
April 8, 2024 at 6:57 pm #21434Nicholas
Guestsome newer project:
https://github.com/RobiNN1/phpCacheAdmin (for docker maybe)
April 8, 2024 at 7:00 pm #21435Lisa
GuestThe @Amnuts is simplest script. And supports JIT.
May 15, 2024 at 7:34 am #24855Jeremy
GuestShared by a member of our Discord:
August 27, 2024 at 10:25 am #26326Gloria
Guestany update on this? will it be made part of the WP Admin >> SlickStack menu?
-
AuthorPosts