L
L
Lorem Ipsum2020-11-17 09:39:14
PHP
Lorem Ipsum, 2020-11-17 09:39:14

Does cron have caching?

Hello.
Can you please tell me if cron (I configure it via editing crontab) has caching?
I just have a problem, it works out some outdated script, and a new one. It's like cron runs the old version of the script and then the new one. Moreover, this only works at 9:00 (as it was originally installed). If set every minute, or, for example, at 9:01, then only a new version of the script is executed, but I need to start it exactly at 9:00. How to solve the problem?

I apologize for the wasted time and confusion. I didn’t know it myself, but the owners of the server where cron runs made a copy of it for tests, and that’s where this cron was launched from.
I myself was not informed, and they also demanded to solve the problem.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Adamos, 2020-11-17
@Adamos

Well, of course, of course, it goes without saying - NO!
(c) Gandalf in the Russian translation of The Hobbit.
But cron does more than just crontab...

S
Sergey Pankov, 2020-11-18
@trapwalker

Probably he didn’t notice how he corrected crontab through sudo and the old one starts from there. Or vice versa, from under the user, and new changes from the superuser.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question