Skip to content

Commit f26fe99

Browse files
committed
Small README update.
1 parent 7ee8fcf commit f26fe99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ To install this package, edit your `composer.json` file:
1515
```js
1616
{
1717
"require": {
18-
"dwnload/wp-rest-api-object-cache": "^1.0"
18+
"dwnload/wp-rest-api-object-cache": "^1.0.3"
1919
}
2020
}
2121
```
@@ -142,7 +142,7 @@ You can use the WordPress filter `save_post` if you would like to empty **ALL**
142142
use Dwnload\WpRestApi\RestApi\RestDispatch;
143143
add_action( 'save_post', function( $post_id ) {
144144
if ( class_exists( RestDispatch::class ) ) {
145-
call_user_func( [ ( new WpRestApiCache() )->getRestDispatch(), 'wpCacheFlush' ] );
145+
call_user_func( [ ( WpRestApiCache::getRestDispatch(), 'wpCacheFlush' ] );
146146
}
147147
} );
148148
```

0 commit comments

Comments
 (0)