mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
Add signup link cache expiration for 3 months
This commit is contained in:
parent
f813cf451a
commit
0c5dfbc3e8
2 changed files with 4 additions and 3 deletions
|
@ -67,10 +67,11 @@ class Cache {
|
|||
*
|
||||
* @param string $key The key under which the value should be cached.
|
||||
* @param mixed $value The value to cache.
|
||||
* @param int $expiration Time until expiration in seconds.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function set( string $key, $value ): bool {
|
||||
return (bool) set_transient( $this->prefix . $key, $value );
|
||||
public function set( string $key, $value, int $expiration = 0 ): bool {
|
||||
return (bool) set_transient( $this->prefix . $key, $value, $expiration );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue