3 ms·
"I attributed it mostly to WordPress being WordPress though." One of the unfortunate issues with Wordpress is their continued support for outdated PHP versions
by mtbcoder 12y ago
"I attributed it mostly to WordPress being WordPress though."
One of the unfortunate issues with Wordpress is their continued support for outdated PHP versions. Wordpress is compatible with as far back as PHP 5.2.4, which was released back in 2007. There have been many performance improvements to PHP since the early versions of 5.x. The fact that Wordpress is eating up so much CPU on trivial CRUD logic is probably attributed to the sheer amount of technical debt/cruft in the code base, but also compounded by the need (insistence?) to support legacy systems, thus not being able to take advantage of newer features of PHP.
- jdub 12y agoThe conservative choice of PHP 5.2 as the minimum requirement for WordPress doesn't stop performance sensitive sites using later versions of PHP, or HHVM, or Phalanger, or whatever floats their boat. Indeed, only 30% of WordPress installs use PHP 5.2. Runtime features are not a problem for WordPress users. If you think the minimum requirement is limiting potential for optimisation, what are some relevant language and library features in subsequent versions that the WordPress team can’t use?