File: //proc/thread-self/cwd/wp-content/plugins/duplicator-pro/classes/class.constants.php
<?php
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
/**
* @copyright 2016 Snap Creek LLC
*/
class DUP_PRO_Constants
{
const PLUGIN_SLUG = 'duplicator-pro';
const DAYS_TO_RETAIN_DUMP_FILES = 1;
const ZIPPED_LOG_FILENAME = 'duplicator_pro_log.zip';
const TEMP_CLEANUP_SECONDS = 6 * HOUR_IN_SECONDS; // How many seconds to keep temp files around when delete is requested
const IMPORTS_CLEANUP_SECS = 24 * HOUR_IN_SECONDS; // 24 hours - how old files in import directory can be before getting cleane up
const MAX_BUILD_RETRIES = 15; // Max number of tries doing the same part of the Backup before auto cancelling
const PACKAGE_CHECK_TIME_IN_SEC = 10;
const DEFAULT_MAX_PACKAGE_RUNTIME_IN_MIN = 90;
const DEFAULT_MAX_PACKAGE_TRANSFER_TIME_IN_MIN = 90;
const DEFAULT_MAX_WORKER_TIME = 20;
const DEFAULT_ZIP_ARCHIVE_CHUNK = 32;
const ORPAHN_CLEANUP_DELAY_MAX_PACKAGE_RUNTIME = 60;
const TRANSLATIONS_API_URL = 'https://translations.duplicator.com/packages/duplicator-pro/packages.json';
// SQL CONSTANTS
const PHP_DUMP_READ_PAGE_SIZE = 500;
const DEFAULT_MYSQL_DUMP_CHUNK_SIZE = 128 * KB_IN_BYTES;
const MYSQL_DUMP_CHUNK_SIZE_MIN_LIMIT = 1 * KB_IN_BYTES;
const MYSQL_DUMP_CHUNK_SIZE_MAX_LIMIT = 1 * MB_IN_BYTES;
/**
* max query insert sizes (valid on mysqldump and phpdump)
*
* @return array<int, string>
*/
public static function getMysqlDumpChunkSizes()
{
return [
"8192" => '8K',
"32768" => '32K',
"131072" => '128K',
"524288" => '512K',
"1046528" => '1M',
];
}
}