=== OpCache Monitor and Reset ===
Contributors: dimash
Tags: opcache, cache, performance, tools, server
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Clears OPcache automatically on plugin updates and lets admins inspect and clear OPcache from Tools -> OpCache Monitor and Reset.

== Description ==

OpCache Monitor and Reset adds a dedicated Tools screen for WordPress administrators to:

* Inspect OPcache runtime status and key performance metrics.
* Review memory usage, restart counters, and JIT status.
* Clear OPcache safely via AJAX without leaving wp-admin.
* See an automatic admin notice after plugin updates when OPcache is reset.

This plugin is designed for environments where PHP OPcache is enabled.

== Installation ==

1. Upload the `opcache-monitor-and-reset` folder to `/wp-content/plugins/`.
2. Activate the plugin through the `Plugins` menu in WordPress.
3. Open `Tools -> OpCache Monitor and Reset`.

== Frequently Asked Questions ==

= Who can use this plugin? =

Only users with the `manage_options` capability can access the tools page and clear OPcache.

= What happens if OPcache is not available on the server? =

The plugin shows a warning and does not attempt reset actions.

= Does this plugin work on multisite? =

Yes, it can run on multisite where OPcache functions are available and the user has the required capability.

== Screenshots ==

1. OPcache dashboard with memory usage, cache state, performance, restart counters, JIT status, and configuration snapshot.

== Changelog ==

= 1.0.1 =

* Kept third-party admin notices outside the plugin header area.

= 1.0.0 =

* Initial public release.
* Added OPcache dashboard in Tools.
* Added AJAX OPcache reset action and update-time reset notice.

== Upgrade Notice ==

= 1.0.1 =

Keeps third-party admin notices outside the plugin header area.

= 1.0.0 =

Initial release.
