- This topic has 3 replies, 2 voices, and was last updated 7 years, 11 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Maybe Use Cron to check user account status?
I noticed, when user is expired, he is still active till he logs into his account, only than it changes his status to “expired”, or vice versa. Is there a way to have a cron job running to check daily if user is expired, or active, instead of triggering that check on a user login?
“Real” cron jobs (what you are thinking about) are not possible with WordPress. In WordPress, whenever someone loads a page, WordPress checks to see if a queued job should be triggered. “Real” cron jobs are queued and then independently triggered by the server’s system clock, on a regular basis. Consequentially, if a particular WordPress site only gets accessed by only a handful of users, and maybe the occasional search engine, a day; the triggering of queued jobs will be skewed across a 24 hour period.
I am referring to real cron jobs, that need to be inputed into a server through cpanel and not managed through wordpress of course. Something like “http://www.example.com/?SWMP-cron=check”.
SWPM is a plugin for WordPress. It relies on the pseudo-cron of WordPress for triggering its events. Making it dependent upon “real cron” will not help those who are using Windows, MAC or XAMPP servers. the baseline SWPM plugin is licensed as Open Source software. You are welcome to make your own server dependent modifications to it.