Closed timotheegoguely closed 5 months ago
sorry about the late reply. as discussed in the forum the dashes in the filename disrupt janitor. i will fix this asap.
its actually something else. since you created your own route and call the command manually you will need to add the --quiet.
janitor()->command('select-random-featured-cards --quiet');
my suggestion would be instead of creating a custom webhook to use the one from the plugin. it has the check for the secret and appends the quiet option automatically.
plugin-janitor/xxxxxxxxxxxxxxxxx/select-random-featured-cards
Hi,
I'm using you plugin on a website I'm working, and so far, everything was working like a charm – congratulations for all your work on this one.
So, my Janitor panel buttons defined in my
home.yml
blueprint works perfectly:Here is my custom command file
site/commands/select-random-featured-cards.php
:I have the following routes defined in my
config.php
:When I trigger the
janitor-flush-home
command via the urlhttps://mywebsite.com/webhook/xxxxxxxxxxxxxxxxx/janitor-flush-home
, it works (the home page cache is flushed), but my second commandhttps://mywebsite.com/webhook/xxxxxxxxxxxxxxxxx/select-random-featured-cards
isn't working, and I don't understand why.Am I missing something? Should I use
janitor:job
orjanitor:call
? 🤔 Thanks for your help!