WC_Rate_Limiter::set_cache
Cache a rate limit.
Method of the class: WC_Rate_Limiter{}
No Hooks.
Returns
true|false.
Usage
$result = WC_Rate_Limiter::set_cache( $action_id, $expiry );
- $action_id(string) (required)
- Identifier of the action.
- $expiry(int) (required)
- Timestamp when the limit expires.
WC_Rate_Limiter::set_cache() WC Rate Limiter::set cache code WC 10.4.3
protected static function set_cache( $action_id, $expiry ) {
return wp_cache_set( self::get_cache_key( $action_id ), $expiry, self::CACHE_GROUP );
}