We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ee8fcf commit f26fe99Copy full SHA for f26fe99
README.md
@@ -15,7 +15,7 @@ To install this package, edit your `composer.json` file:
15
```js
16
{
17
"require": {
18
- "dwnload/wp-rest-api-object-cache": "^1.0"
+ "dwnload/wp-rest-api-object-cache": "^1.0.3"
19
}
20
21
```
@@ -142,7 +142,7 @@ You can use the WordPress filter `save_post` if you would like to empty **ALL**
142
use Dwnload\WpRestApi\RestApi\RestDispatch;
143
add_action( 'save_post', function( $post_id ) {
144
if ( class_exists( RestDispatch::class ) ) {
145
- call_user_func( [ ( new WpRestApiCache() )->getRestDispatch(), 'wpCacheFlush' ] );
+ call_user_func( [ ( WpRestApiCache::getRestDispatch(), 'wpCacheFlush' ] );
146
147
} );
148
0 commit comments