Jump to content

Cannot get Lazy cron to work, no logs, no message, no cache file, nothing


joe_g
 Share

Recommended Posts

Hi there,

I can't get my LazyCron to fire

<?php
    $useMain = false;

    $wire->addHook('LazyCron::everyMinute', null, function() {
        $log->message("1 min passed"); 
        echo '1 min passed';
    });

    echo 'hooked - ';

?>
Some output for good measure

I tried making it into an anonymous function (see above), but same result as by using the example in the docs (with regular function).

No lazycron*.cache file, No logs, No message - it just doesn't fire at all. Not sure how to proceed?

tx!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...