diff --git a/web/modules/custom/imagecache_render/imagecache_render.module b/web/modules/custom/imagecache_render/imagecache_render.module index 0e3479d3b7534b578c7bb6baa8fb2a8b88851ea0..b428b6daf25e9f9c0d25dc49ad3357a2ab79d8ee 100644 --- a/web/modules/custom/imagecache_render/imagecache_render.module +++ b/web/modules/custom/imagecache_render/imagecache_render.module @@ -62,15 +62,11 @@ function imagecache_render_imagecache_external_needs_refresh_alter(&$needs_refre date_default_timezone_set('America/New_York'); $current_hour = (int) date('G'); if ($current_hour >= 3 && $current_hour < 5) { - if (filemtime($filepath) < \Drupal::time()->getRequestTime() - 60 * 60 * 24) { + if (filemtime($filepath) < \Drupal::time()->getRequestTime() - 60 * 60 * 24 - (30 * 60)) { \Drupal::logger('imagecache_external')->notice('@filepath older than 24 hours, refreshing', [ '@filepath' => $filepath, ]); $needs_refresh = TRUE; - } else { - \Drupal::logger('imagecache_external')->notice('@filepath is less than 24 hours. Will not refresh.', [ - '@filepath' => $filepath, - ]); } } }