xwp / stream

🗄️ Stream plugin for WordPress

Home Page:https://wordpress.org/plugins/stream/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TTL purge schedule is never setup

lukecarbis opened this issue · comments

The schedule setup should run on every page load after the WP class object is setup, as per https://github.com/x-team/wp-stream/blob/master/includes/admin.php#L52.

However, it never seems to load. My guess is that changing the hook (maybe wp_loaded?) should fix the issue.

I can confirm that the wp_loaded hook will run the setup function, but I don't know why it's not running from wp. @fjarrett - is there a particular reason it's hooked in at wp?

@lukecarbis Great question. I see it was introduced in #376 as a fix for #371.

@powelski Can you give us some background on this one?

@lukecarbis So are you saying that using wp_loaded has been tested and works as expected?

Yes, on the condition that purge_schedule_setup is supposed to be run on every page load.

Fixed by #418.