Answer the question
In order to leave comments, you need to log in
How to execute mongodb command from cron?
It is necessary to perform a couple of times a day to clear the cache from under the crown to delete the collection of documents.
I can configure cron, how to execute the order of these actions from the console with one command?
sudo mongo
use dbname
dbname.cache.drop()
exit
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question