Score:2

When does system_requirements function runs?

eh flag

When does Drupal call system_requirements(), which hardens permissions for files and for directories containing them?
Does Drupal call it in each cron run?

Score:3
us flag

system_requirements() is a hook_requirements() implementation by the System module, which is one of the required Drupal core modules. (It means it's installed on every Drupal site.)

hook_requirements() implementations are invoked when:

  • Modules are installed from the UI
  • The site status report is shown
  • A database update page is shown

For what I can see, Drupal core doesn't invoke hook_requirements() implementations during cron tasks, but a contributed or a custom module could invoke them when cron tasks are executed. They are invoked when /update.php is accessed, though.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.