humanmade / Cavalcade

A better wp-cron. Horizontally scalable, works perfectly with multisite.
https://engineering.hmn.md/projects/cavalcade/
Other
515 stars 46 forks source link

Add mu-plugin symlink instructions to README #36

Closed iandunn closed 7 years ago

iandunn commented 7 years ago

This saves people from having to look through the *.php files to figure out which one is the bootstrap file. Most will probably guess that it's plugin.php, but it doesn't hurt to remove any doubt.

tillkruss commented 7 years ago

👍

rmccue commented 7 years ago

I highly recommend not symlinking, but rather loading from a proper file; e.g:

<?php
require __DIR__ . '/cavalcade/plugin.php';

It may be compatible with symlinks, but it certainly isn't tested to be so, and it has the potential to break. I'd be happy to add this script to the readme, not so much the symlink instructions though.

iandunn commented 7 years ago

Works for me, I'll make that change tomorrow.

iandunn commented 7 years ago

d543c5f swaps out the symlink command for a require_once statement.

rmccue commented 7 years ago

Fantastic, thanks!