[wp-trac] [WordPress Trac] #54117: Changing memory limit descriptions
WordPress Trac
noreply at wordpress.org
Thu Jun 13 10:06:26 UTC 2024
#54117: Changing memory limit descriptions
----------------------------+------------------------------
Reporter: fyremoon | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version: 5.8.1
Severity: minor | Resolution:
Keywords: needs-patch | Focuses: docs
----------------------------+------------------------------
Comment (by mardroid):
is there a reason why the memory limits are set to arbitrary figures and
not a percentage of the limit?
In general, using megabytes as values is a widely adopted standard. This
practice makes it easier to understand and manage resource limits
effectively. WordPress follows this approach as PHP configurations and
server settings are also defined in megabytes, ensuring compatibility and
avoiding potential errors.
Setting resource limits as percentages can lead to inconsistencies. For
example, some hosting providers might advertise that they allocate a
certain percentage for WP_MEMORY_LIMIT. However, if this percentage
translates to only 40MB, it would be insufficient for many WordPress sites
and fall below the minimum requirements for many plugins and themes. Thus,
using fixed megabyte values ensures that resource limits are clear,
predictable, and adequate for optimal performance.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54117#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list