File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Parthenon/Billing/Subscription Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public function getSubscription(string $id): Subscription
53
53
$ this ->getLogger ()->debug ('Fetching subscription from original subscription provider ' );
54
54
$ this ->subscription [$ id ] = $ this ->subscriptionProvider ->getSubscription ($ id );
55
55
$ rawData = serialize ($ this ->subscription [$ id ]);
56
- $ this ->redis ->set ($ key , $ rawData );
56
+ $ this ->redis ->set ($ key , $ rawData, 900 );
57
57
} else {
58
58
$ this ->getLogger ()->debug ('Got the subscription from cache ' );
59
59
$ this ->subscription [$ id ] = unserialize ($ rawData );
@@ -77,7 +77,7 @@ public function getSubscriptionsForCustomer(CustomerInterface $customer): array
77
77
$ this ->getLogger ()->debug ('Fetching subscriptions from original subscription provider ' );
78
78
$ this ->subscriptions [$ id ] = $ this ->subscriptionProvider ->getSubscriptionsForCustomer ($ customer );
79
79
$ rawData = serialize ($ this ->subscriptions [$ id ]);
80
- $ this ->redis ->set ($ key , $ rawData );
80
+ $ this ->redis ->set ($ key , $ rawData. 900 );
81
81
} else {
82
82
$ this ->getLogger ()->debug ('Got the subscriptions from cache ' );
83
83
$ this ->subscriptions [$ id ] = unserialize ($ rawData );
You can’t perform that action at this time.
0 commit comments