This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Astra_Memory_Limit_Notice::get_recommended_memory_limit( int $current_limit_bytes )
Get recommended memory limit based on current limit
Description
Parameters
- $current_limit_bytes
-
(int) (Required) Current memory limit in bytes.
Return
(string) Recommended memory limit string.
Source
File: inc/class-astra-memory-limit-notice.php
private function get_recommended_memory_limit( $current_limit_bytes ) { $current_limit_mb = $current_limit_bytes / ( 1024 * 1024 ); if ( $current_limit_mb < 512 ) { return '512M'; } if ( $current_limit_mb < 1024 ) { return '1G'; } return '2G'; }
Expand full source code Collapse full source code View on Trac