Does cron work at all?

Created on 22 August 2024, about 1 month ago

Problem/Motivation

I suppose this is more of a question, but I am trying to see exactly how the cron of this module works, and I'm a bit confused by the code in this module, specifically the lines...

function bynder_cron() {
  $last_update = \Drupal::state()->get('bynder_cache_last_update', 0);
  if ($last_update && (($last_update + \Drupal::config('default')->get('cache_lifetime')) < \Drupal::time()->getRequestTime())) {

I don't know what "\Drupal::config('default')->get('cache_lifetime')" is intending to do, but this is NULL for me, and I don't know what "default" is referring to...
This seems like it can't work to me...?

Has this code ever worked?

πŸ’¬ Support request
Status

Active

Version

4.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dpagini

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @dpagini
  • πŸ‡ΊπŸ‡ΈUnited States dpagini

    Assuming this should be \Drupal::config('bynder.settings')->get('cache_lifetime')? I'm unclear what this code is doing though. Is this maybe a cached version of what the custom metaproperties are?

Production build 0.71.5 2024