Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#46633 closed enhancement (fixed)

Enable the persistent object cache on a PHP 7 build on Travis CI

Reported by: johnbillion's profile johnbillion Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.2 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: has-patch commit
Focuses: Cc:


Currently there's an extra Travis CI build for PHP 5.6 which enables the persistent object cache using memcached.

The persistent object cache should be enabled on a PHP 7.3 build.

Once that's done, the 5.6 build with the persistent object cache can be removed in order to keep the build numbers down.

Attachments (1)

46633.diff (523 bytes) - added by netweb 5 years ago.

Download all attachments as: .zip

Change History (4)

5 years ago

#1 @netweb
5 years ago

  • Keywords has-patch added; needs-patch removed

#2 @netweb
5 years ago

  • Keywords commit added
  • Milestone changed from Future Release to 5.2

The CI Build:

The CI job:

$ sudo service memcached start
Starting memcached: memcached is already running.

$ if [[ "$WP_TRAVIS_OBJECT_CACHE" == "true" ]]; then
    cp tests/phpunit/includes/object-cache.php src/wp-content/object-cache.php
    echo "extension =" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

CI job passes, tests pass, no noticeable issues looking at the CI job log.

#3 @SergeyBiryukov
5 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 45027:

Build/Test Tools: Enable persistent object cache on a PHP 7.3 build instead of PHP 5.6.

Props netweb, johnbillion.
Fixes #46633.

Note: See TracTickets for help on using tickets.