25
Jan, 2016
Jan, 2016
Can I force the s2Member shortcode [s2EOT /] to be in sync w/ Stripe?
This occurs already. There is a bit of a delay at times though. s2Member caches the details that it retrieves from Stripe in order to the determine the NPT (Next Payment Time).
The data that s2Member retrieves from Stripe is cached for 12 hours by default. This prevents a situation where your site is making repeated connections to Stripe for information that is not likely to change very often. If you'd like to reduce the cache time, you can change DAY_IN_SECONDS / 2
here, to something that works better for you.
Another way to refresh the cache is to delete all WordPress transients that contain s2m_eot
.
DELETE FROM `wp_options` WHERE `option_name` LIKE '%s2m\_eot%'
See also: How can I remove Transients in the WP options table?