You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2023. It is now read-only.
Description
-----------
`cron.txt` contains the timestamp of the last cron run. The file is **only** updated with the current timestamp once cron is actually executed.
However, with Docker use cases you may throw away a container any time and start from a clean Contao instance (eg in case of updates, migrations etc), only mounting/linking persistent stuff into the container.
Therefore, the next cron run may only be in a few hours (database still knows `lastrun`), and the `cron.txt` is not created...
Thus, every browser request will always entail an ugly `404`, until the next cron run...
This patch will always write the `cron.txt` containing:
* the current timestamp, if cron is really executed
* the timestamp from the database, otherwise
Writing the `cron.txt` even if it already exists shouldn't be a big deal..?
See also Docker image at:
https://hub.docker.com/r/binfalse/contao/
Commits
-------
754d366 always refresh cron.txt
eacb91d moved the `updateCronTxt` call behind `unlockTables`
b76ef9c Add the issue reference in the comment
0 commit comments