Move the Super User auth check within the helper SettingsServer::isArchivePhpTriggered()
Make safemode work in Cli mode
Fixes #2981 Calling API.get in CronArchive. This will result in VisitFrequency.get being called therefore pre-processed as well.