Manual End of Term (EOT) not processed
Posted:
July 12th, 2011, 10:55 am
by PseudoNyhm
I manually set a user's Automatic End of Term field to a date in the past (several days in the past). However, they are still Level 1 (should have been demoted to Level 0).
Is EOT something that is processed periodically (wp-cron)? If so, how long should I await the change to be noticed? Is there a way to tell s2Member to check an EOT immediately?
Re: Manual End of Term (EOT) not processed
Posted:
July 12th, 2011, 1:10 pm
by Cristián Lávaque
Jason Caldwell wrote:(1) Will the cron job ignore an imported Automatic-EOT date we set to, say, 6 months ago? (Or did we simply not wait long enough for the cron job to run?)
Yes, s2Member will process all EOTs, even if the dates are in the past. The Auto EOT system will look for Users with an EOT Time that is less than or equal to the current time, at the time the WP-Cron process is running. So the answer to this question is no, s2Member will NOT ignore them, they will be processed. You probably just didn't give the WP-Cron system enough time.
You could try using the
'ws_plugin__s2member_during_configure_user_registration_admin_side' and
'ws_plugin__s2member_during_users_list_update_cols' to run the EOT behavior using
/?s2member_auto_eot_system_via_cron=1 at the time the admin creates/modifies the account.
I hope that helps.
Re: Manual End of Term (EOT) not processed
Posted:
July 12th, 2011, 2:08 pm
by PseudoNyhm
Ah, I see that impatience won out. Sorry to pester you with this before waiting long enough. (Note to myself: Make coffee with half decaf.)
Awaiting wp-cron should be perfectly fine, but thank you for the technical pointers to forcing the processing.
By the way,
here is what I was testing when I came across this.