I'm using a cron because if a site has hundreds, thousands, or hundreds of thousands of posts, it will not be able to complete this backfill job in one process. So, this happens incrementally via a cron.
Currently on master, the interface to push posts to Frost is an instance method, Poet_Public::post_article. So, in order to invoke it, one would have to declare a new instance of Post_Public. I've done the cheap "fix" now and made that member static, but Post_Public could also be changed to a singleton. Please don't use a global
I'd like to add more info around this process. For example, how many posts are left to be backfilled. But, I'm keeping it simple right now and just following the protocol and layout I presently see for the admin page.
A few notes here:
Poet_Public::post_article
. So, in order to invoke it, one would have to declare a new instance ofPost_Public
. I've done the cheap "fix" now and made that member static, butPost_Public
could also be changed to a singleton. Please don't use aglobal
Fixes #8