Astra_WP_Background_Process::get_memory_limit()
Get memory limit
Description
Return
(int)
Source
File: inc/lib/batch-processing/class-astra-wp-background-process.php
protected function get_memory_limit() { if ( function_exists( 'ini_get' ) ) { $memory_limit = ini_get( 'memory_limit' ); } else { // Sensible default. $memory_limit = '128M'; } if ( ! $memory_limit || -1 === intval( $memory_limit ) ) { // Unlimited, set to 32GB. $memory_limit = '32000M'; } return intval( $memory_limit ) * 1024 * 1024; }
Expand full source code Collapse full source code View on Trac