WC_Rate_Limiter::get_cached()
Retrieve a cached rate limit.
Method of the class: WC_Rate_Limiter{}
No Hooks.
Return
true|false|Int
.
Usage
$result = WC_Rate_Limiter::get_cached( $action_id );
- $action_id(string) (required)
- Identifier of the action.
WC_Rate_Limiter::get_cached() WC Rate Limiter::get cached code WC 8.7.0
protected static function get_cached( $action_id ) { return wp_cache_get( self::get_cache_key( $action_id ), self::CACHE_GROUP ); }