/home/vianto5/duettowers.mx/wp-content/plugins/wpforms/src/Pro/Admin
Edit: /home/vianto5/duettowers.mx/wp-content/plugins/wpforms/src/Pro/Admin/CoreInfoCache.php (2085B)
self::REMOTE_SOURCE,
// Addons cache file name.
'cache_file' => 'core.json',
/**
* Time-to-live of the core information cache file in seconds.
*
* This applies to `uploads/wpforms/cache/core.json` file.
*
* @since 1.8.6
*
* @param integer $cache_ttl Cache time-to-live, in seconds.
* Default value: WEEK_IN_SECONDS.
*/
'cache_ttl' => (int) apply_filters( 'wpforms_pro_admin_core_info_cache_ttl', WEEK_IN_SECONDS ),
// Scheduled update action.
'update_action' => 'wpforms_pro_core_info_cache_update',
];
}
/**
* Prepare core info to store in a local cache..
*
* @since 1.8.6
*
* @param array $data Raw remote core data.
*
* @return array Prepared data for caching.
*/
protected function prepare_cache_data( $data ): array {
if ( empty( $data[0] ) ) {
return [];
}
$cache = $data[0];
// The remote file doesn't contain these icons, but we need them.
// The icons are used on the Dashboard > Updates page.
$cache['icons'] = [
'1x' => 'https://plugins.svn.wordpress.org/wpforms-lite/assets/icon-128x128.png',
'2x' => 'https://plugins.svn.wordpress.org/wpforms-lite/assets/icon-256x256.png',
'default' => 'https://plugins.svn.wordpress.org/wpforms-lite/assets/icon-256x256.png',
];
return $cache;
}
}