contao / docs

Contao Documentation
https://docs.contao.org
Other
31 stars 149 forks source link

Use a description of cronjobs that works independent of the versions #1268

Closed Toflar closed 9 months ago

Toflar commented 9 months ago

The list and periodicity changes between Contao versions so I think for the developers documentation, it's best to give them the tools to find the actual list themselves.

fritzmg commented 9 months ago

@Toflar adding dump($GLOBALS['TL_CRON']) to the LegacyCron won't really do anything when executing debug:container --tag contao.cronjob. You could create

// contao/config/config.php
dump($GLOBALS['TL_CRON']);

and then execute cache:warmup. However, I am not sure we should officially document this - since stuff like that might also show up in prod. Overall there isn't really a convenient way to display all registered legacy cronjobs. If we want one, we would need to add one in Contao 4.13.

Toflar commented 9 months ago

You can use xdebug, then you see the crons.

fritzmg commented 9 months ago

I have added a note in 1ee29b3 - @Toflar wdyt?

Toflar commented 9 months ago

Yeah I'm happy with that too.

fritzmg commented 9 months ago

Thank you @Toflar :)