| @@ -12,14 +12,18 @@ | ||
| 12 | 12 | self::$constants = [ |
| 13 | 13 | 'S3_MULTIPART_MIN_FILE_SIZE' => 5242880, |
| 14 | 14 | 'GCLOUD_MULTIPART_MIN_FILE_SIZE' => 5242880, |
| 15 | 15 | 'DOCEAN_MULTIPART_MIN_FILE_SIZE' => 5242880, |
| 16 | - 'S3COMPATIBLE_MULTIPART_MIN_FILE_SIZE' => 5242880, | |
| 16 | + 'CLOUDFLARE_R2_MULTIPART_MIN_FILE_SIZE' => 5242880, | |
| 17 | + 'S3COMPATIBLE_MULTIPART_MIN_FILE_SIZE' => 5242880, | |
| 17 | 18 | 'CACHE_GROUP' => WPMCS_TOKEN.'_cache_group', |
| 18 | 19 | 'CACHE_EXPIRE' => 24*60*60, |
| 19 | 20 | 'META_KEY' => WPMCS_TOKEN.'_meta_data', |
| 20 | 21 | 'CONTENT_META_KEY' => WPMCS_TOKEN.'_post_meta_data', |
| 21 | 22 | 'GLOBAL_SETTINGS_KEY' => WPMCS_TOKEN.'_global_settings', |
| 23 | + 'FILE_MANAGER_SETTINGS_KEY' => WPMCS_TOKEN.'_file_manager_settings', | |
| 24 | + 'BTB_DESTINATION_KEY' => WPMCS_TOKEN.'_btb_destination', | |
| 25 | + 'BG_RUNNER_SETTINGS_KEY' => WPMCS_TOKEN.'_bg_runner_settings', | |
| 22 | 26 | 'STATUS_KEY' => WPMCS_TOKEN.'_status_data', |
| 23 | 27 | 'COUNTER_KEY' => WPMCS_TOKEN.'_counter_data', |
| 24 | 28 | 'UPLOADS' => WPMCS_TOKEN.'_uploads' |
| 25 | 29 | ]; |
| @@ -27,8 +31,9 @@ | ||
| 27 | 31 | self::$service_labels = [ |
| 28 | 32 | 's3' => esc_html__('AWS/S3', 'media-cloud-sync'), |
| 29 | 33 | 'gcloud' => esc_html__('Google Cloud Storage', 'media-cloud-sync'), |
| 30 | 34 | 'docean' => esc_html__('Digital Ocean Spaces', 'media-cloud-sync'), |
| 35 | + 'cloudflareR2' => esc_html__('Cloudflare R2', 'media-cloud-sync'), | |
| 31 | 36 | 's3compatible' => esc_html__('S3 Compatible', 'media-cloud-sync') |
| 32 | 37 | ]; |
| 33 | 38 | } |
| 34 | 39 | |
| @@ -45,4 +50,6 @@ | ||
| 45 | 50 | public static function getServiceLabels($key, $default = false) { |
| 46 | 51 | return isset(self::$service_labels[$key]) ? self::$service_labels[$key] : $default; |
| 47 | 52 | } |
| 48 | 53 | } |
| 54 | +// Initialize on load time to handle missing constant redeclaration | |
| 55 | +Schema::init(); | |