Title: OPcache Reset
Author: Danila Vershinin
Published: <strong>जून 1, 2018</strong>
Last modified: ऑगस्ट 6, 2026

---

प्लगइन शोधा

![](https://ps.w.org/opcache-reset/assets/banner-772x250.png?rev=3419574)

![](https://ps.w.org/opcache-reset/assets/icon.svg?rev=3419574)

# OPcache Reset

 [Danila Vershinin](https://profiles.wordpress.org/dvershinin/) कडून

[डाउनलोड करा](https://downloads.wordpress.org/plugin/opcache-reset.2.4.1.zip)

 * [तपशील](https://mr.wordpress.org/plugins/opcache-reset/#description)
 * [पुनरावलोकने](https://mr.wordpress.org/plugins/opcache-reset/#reviews)
 * [डेव्हलोपमेंट](https://mr.wordpress.org/plugins/opcache-reset/#developers)

 [समर्थन](https://wordpress.org/support/plugin/opcache-reset/)

## वर्णन

This plugin clears OPcache after updating WordPress core, themes, and files.
 Unlike
other plugins, it is also compatible with [WordPress updates made by Linux cron](https://www.getpagespeed.com/server-setup/performance-friendly-wordpress-updates).

### Features

 * Automatic OPcache reset after plugin/theme/core updates
 * Clears both memory-based and file-based OPcache
 * Works with cron-based WordPress updates (CLI context)
 * WP-CLI commands for manual OPcache management
 * Zero external dependencies and no shell commands

### Configuration

The plugin works automatically for web-based updates. For CLI-based updates (cron,
WP-CLI), configure your PHP-FPM socket:

Create a CacheTool-compatible `.cachetool.yml` in your WordPress root:

    ```
    adapter: fastcgi
    fastcgi: /run/php-fpm/www.sock
    ```

### WP-CLI Commands

Reset OPcache from the command line:

    ```
    wp opcache reset
    ```

Show OPcache status and statistics:

    ```
    wp opcache status
    ```

Output status as JSON:

    ```
    wp opcache status --format=json
    ```

## समीक्षा

![](https://secure.gravatar.com/avatar/bdd6d3a0444ba0b213f7ce42cc7fa01ae5f4a0b76f182675c91edb64b0ea2eb6?
s=60&d=retro&r=g)

### 󠀁[Good !](https://wordpress.org/support/topic/good-4504/)󠁿

 [geoffreymerck](https://profiles.wordpress.org/geoffreymerck/) मे 27, 2019

This almost what I have been looking for. The OPCache is also reset when installing
new plugins, but not when deinstalling.

 [ सर्व 1 पुनरावलोकन वाचा ](https://wordpress.org/support/plugin/opcache-reset/reviews/)

## योगदानकर्ते आणि विकसक

“OPcache Reset” हे मुक्त स्रोत सॉफ्टवेअर आहे. पुढील लोक या प्लगइनच्या निर्मितीत 
योगदान केले आहे.

योगदानकर्ते

 *   [ Danila Vershinin ](https://profiles.wordpress.org/dvershinin/)

“OPcache Reset” 1 लोकॅलमध्ये भाषांतरित केले आहे. [अनुवादकांना](https://translate.wordpress.org/projects/wp-plugins/opcache-reset/contributors)
त्यांच्या योगदानाबद्दल धन्यवाद.

[भाषांतर करा “OPcache Reset” तुमच्या भाषेत.](https://translate.wordpress.org/projects/wp-plugins/opcache-reset)

### विकासातील आग्रह?

[कोड ब्राउझ करा](https://plugins.trac.wordpress.org/browser/opcache-reset/), [SVN संग्रहालय](https://plugins.svn.wordpress.org/opcache-reset/)
तपासा, किंवा [विकास लॉग](https://plugins.trac.wordpress.org/log/opcache-reset/) 
च्या [RSS](https://plugins.trac.wordpress.org/log/opcache-reset/?limit=100&mode=stop_on_copy&format=rss)
द्वारे सदस्यता घ्या.

## बदलांची यादी

#### 2.4.1

 * Reset PHP-FPM OPcache from cron and WP-CLI without `shell_exec` or a CacheTool
   binary
 * Replace shell-based file cache cleanup with native PHP filesystem operations
 * Improve FastCGI configuration, response validation, and error handling
 * Add direct-access protection and prefix internal functions and constants
 * Exclude development-only hidden files from release packages
 * Add disabled-`shell_exec` regression coverage

#### 2.4.0

 * Added WP-CLI commands: `wp opcache reset` and `wp opcache status`
 * Added direct FastCGI communication (no cachetool dependency required)
 * Added support for cachetool.yml configuration format
 * Added end-to-end FastCGI testing
 * Improved test coverage (34 tests)

#### 2.3.0

 * Added comprehensive Docker-based integration test suite (27 tests)
 * Added GitHub Actions CI for linting and testing
 * Added PHPStan and PHPCS for code quality
 * Improved OPcache reset verification with validate_timestamps=0 testing
 * Added pre-commit hooks for automated code checks
 * Updated plugin assets (icons, banners)

#### 2.2.0

 * Added support for file-based OPcache clearing with race condition handling
 * Improved cachetool invocation with proper PATH handling

#### 2.1.2

 * No calling cachetool opcache:reset for setups with only file cache

#### 2.1.0

 * Handle file OPcaches in a consistent fashion

#### 2.0.0

 * Handle file OPCaches

#### 1.0.0

 * Initial release.

## मेटा

 *  आवृत्ती **2.4.1**
 *  शेवटचा अद्यतन **1 आठवडा पूर्वी**
 *  सक्रिय स्थापना **400+**
 *  वर्डप्रेस आवृत्ती ** 5.0 किंवा मोठा **
 *  परीक्षित केले आहे **7.0.4**
 *  PHP आवृत्ती ** 7.4 किंवा मोठा **
 *  भाषा
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/opcache-reset/) आणि [English (US)](https://wordpress.org/plugins/opcache-reset/).
 *  [तुमच्या भाषेत भाषांतर करा](https://translate.wordpress.org/projects/wp-plugins/opcache-reset)
 * टॅग्ज:
 * [cache](https://mr.wordpress.org/plugins/tags/cache/)[OPcache](https://mr.wordpress.org/plugins/tags/opcache/)
   [php](https://mr.wordpress.org/plugins/tags/php/)[wp-cli](https://mr.wordpress.org/plugins/tags/wp-cli/)
   [Zend](https://mr.wordpress.org/plugins/tags/zend/)
 *  [प्रगत दृश्य](https://mr.wordpress.org/plugins/opcache-reset/advanced/)

## मूल्यांकन

 4 पैकी ५ तारे.

 *  [  0 5-तारांकित परीक्षणे     ](https://wordpress.org/support/plugin/opcache-reset/reviews/?filter=5)
 *  [  1 4-तारांकित पुनरावलोकन     ](https://wordpress.org/support/plugin/opcache-reset/reviews/?filter=4)
 *  [  0 3-तारांकित परीक्षणे     ](https://wordpress.org/support/plugin/opcache-reset/reviews/?filter=3)
 *  [  0 2-तारांकित परीक्षणे     ](https://wordpress.org/support/plugin/opcache-reset/reviews/?filter=2)
 *  [  0 1-तारांकित परीक्षणे     ](https://wordpress.org/support/plugin/opcache-reset/reviews/?filter=1)

[आपला अभिप्राय](https://wordpress.org/support/plugin/opcache-reset/reviews/#new-post)

[सर्व पुनरावलोकने पहा](https://wordpress.org/support/plugin/opcache-reset/reviews/)

## योगदानकर्ते

 *   [ Danila Vershinin ](https://profiles.wordpress.org/dvershinin/)

## समर्थन

गेल्या दोन महिन्यातील निराकरण मुद्दे:

     0 पैकी 1

 [समर्थन फोरम पहा](https://wordpress.org/support/plugin/opcache-reset/)

## देणगी

आपण हे प्लगइन पुरविण्यात समर्थन करू इच्छिता का?

 [ ह्या प्लगइनला देणगी द्या ](https://github.com/sponsors/dvershinin)