You are here

function video_s3_cron in Video 6.5

Same name and namespace in other branches
  1. 6.4 plugins/video_s3/video_s3.module \video_s3_cron()

Implementation of hook_cron().

File

plugins/video_s3/video_s3.module, line 10
Provides wrapper functions for the s3 amazon webservices.

Code

function video_s3_cron() {
  if (!_video_s3_is_active_fs()) {
    return;
  }
  module_load_include('lib.inc', 'video_s3');
  $s3 = new video_amazon_s3();
  $s3
    ->connect();
  $s3
    ->updateAllExpiresHeaders();
}