wp cache set <key> <value> <group> <expiration>
Sets a value to the object cache, regardless of whether it already exists
Arguments
Name | Description |
---|---|
key | Cache key |
value | Value to set on the key |
group | Method for grouping data within the cache which allows the same key to be used across groups |
expiration | Define how long to keep the value, in seconds. 0 means as long as possible |