News for hackers. Stuff that matters.
Re:WordPress 3.6 arrives with better post locking, built-in ... by jacques_chester on Thursday August 01, 2013 @10:42PM (#6145042)
I used wp-cron as one of the motivating examples for a different architecture; I talked about it on HN last week -- https://news.ycombinator.com/item?id=6106248

Essentially, given the constraints of the LAMP architecture, wp-cron is the only way to do it.

You overlooked that wrapping WP in layers of caching restricts wp-cron's supply of triggering events. It's a mess.

Re:WordPress 3.6 arrives with better post locking, built-in ... by sehrope on Thursday August 01, 2013 @10:51PM (#6145072)
Yes that's exactly why it came about. I still find it very interesting (and humorous) solution though. I've seen the same inner platform effect in legacy systems at large corporations.
Re:WordPress 3.6 arrives with better post locking, built-in ... by jacques_chester on Thursday August 01, 2013 @10:54PM (#6145077)
I think of it as an architecture smell.

Especially since LAMP is not the universal web app target any more. We can and should architect from the OS up.

Re:WordPress 3.6 arrives with better post locking, built-in ... by sehrope on Thursday August 01, 2013 @11:01PM (#6145101)
It's kludge plain and simple. It's ugly but it works (well kind of). That's the exact definition of a kludge. Further interesting things with wp-cron is that since other plugins make use of it, if you do have a "real" cron implementation the advice is to use the real cron to trigger wp-cron (via curl hitting a localhost only accessible page). Again, it's a kludge but it keeps things running.

On the topic of new stacks from the OS on up, Docker[1] (and lxc in general) and CoreOS[2] are really cool. It's a much more elegant and long term solution to packaged, yet controlled, environments.

[1]: http://www.docker.io/

[2]: http://coreos.com/

Re:WordPress 3.6 arrives with better post locking, built-in ... by e12e on Thursday August 01, 2013 @11:22PM (#6145160)
Ironically, you could wind up without any where to run your cron jobs in such a setup as well... (eg: running scheduled tasks in the container as the db/cache/webapp uid).

This is of course fixable, but still interesting given the context.

Re:WordPress 3.6 arrives with better post locking, built-in ... by justincormack on Friday August 02, 2013 @05:15AM (#6146051)
How? Crown is just a process that sleeps for a minute at a time, checks the config file, forks a process if needed and repeats plus some logging. The only reason WP does not implement that is because shared hosting will kill long running processes.
Re:WordPress 3.6 arrives with better post locking, built-in ... by e12e on Friday August 02, 2013 @08:58PM (#6150589)
You would need extra configuration in order to run cron under the same docker container as your website?