Function __global->points_flush_runtime_cache
Definitions
sources/points.php
- Flush the points cache.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $member_id | ?MEMBER | No | No | Null | N/A | N/A | Only flush the points cache for the specified member (null: flush all members) |
| $property | ?ID_TEXT | No | No | Null | points_used points_spent points_sent points_received gift_points_sent | N/A | Only flush this property from a member's points cache (null: flush all properties) |
Preview
Code (PHP)
/**
* Flush the points cache.
*
* @param ?MEMBER $member_id Only flush the points cache for the specified member (null: flush all members)
* @param ?ID_TEXT $property Only flush this property from a member's points cache (null: flush all properties)
* @set points_used points_spent points_sent points_received gift_points_sent
*/
function points_flush_runtime_cache(?int $member_id = null, ?string $property = null)
* Flush the points cache.
*
* @param ?MEMBER $member_id Only flush the points cache for the specified member (null: flush all members)
* @param ?ID_TEXT $property Only flush this property from a member's points cache (null: flush all properties)
* @set points_used points_spent points_sent points_received gift_points_sent
*/
function points_flush_runtime_cache(?int $member_id = null, ?string $property = null)

