Skip to content

Commit

Permalink
Small README update.
Browse files Browse the repository at this point in the history
  • Loading branch information
thefrosty committed Apr 18, 2018
1 parent 7ee8fcf commit f26fe99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To install this package, edit your `composer.json` file:
```js
{
"require": {
"dwnload/wp-rest-api-object-cache": "^1.0"
"dwnload/wp-rest-api-object-cache": "^1.0.3"
}
}
```
Expand Down Expand Up @@ -142,7 +142,7 @@ You can use the WordPress filter `save_post` if you would like to empty **ALL**
use Dwnload\WpRestApi\RestApi\RestDispatch;
add_action( 'save_post', function( $post_id ) {
if ( class_exists( RestDispatch::class ) ) {
call_user_func( [ ( new WpRestApiCache() )->getRestDispatch(), 'wpCacheFlush' ] );
call_user_func( [ ( WpRestApiCache::getRestDispatch(), 'wpCacheFlush' ] );
}
} );
```

0 comments on commit f26fe99

Please sign in to comment.