We'd like to run our Drupal 7 sites with php7. The only trouble we have so far has to do with the PECL memcache(d) extensions - no stable release supporting php7 has been published yet:
- The PECL/memcached package is being discussed in this issue where people are actively waiting for a stable release to move to php7 (some of them ended up moving to Redis because it was taking too long)
- The PECL/memcache package is being discussed in this issue where maintainers have not provided much information about a possible release supporting php7
Our sysadmin installed PECL/memcached 3.0.0-dev from remirepo. We did some basic testing and successfully ran automated tests. This is encouraging but we are not sure what to expect in real-life (prod) conditions, given that this is a dev release.
We have not found many people running php7 with memcache on the web. Acquia Cloud seems to offer Memcache but not for php7 because "a memcache PECL extension for PHP 7 is not yet formally released. [...] we are eager to see support for memcache in PHP 7". Pantheon and Platform.sh do not seem to use Memcache and offer Redis instead. All in all there does not seem to be many people running php7 with Memcache on prod at the moment.
Redis seems to be growing in popularity and has a stable PECL package that supports php 7. Moving to Redis would be an option but we have had a good experience with Memcache so far and we'd like to stay with it if possible.
So basically we have a few options:
- Move forward with php7 with the dev PECL/memcached extension and accept the risk of running unstable software in prod
- Stay with php5 until a stable release of the PECL/memcached extension is published
- Ditch Memcache and move forward with php7 with another cache backend like Redis
Is anyone using Drupal on php7 with memcache ? Would you suggest doing it ?
Comments
PHP 7
PHP 7 was worth it for us; cut page load times in half. We never ended up using an alt cache backend though; developed a better MySQL one instead.
We run redis instead of
We run redis instead of memcache on our sites, but I'll echo mikeytown2, the php7 upgrade has cut almost all our load times in half, especially on CPU intensive cart and checkout pages. We've not had any problems with redis compatibility.
I know some people use php7
I know some people use php7 with the latest memcached. They've found / reported only 1 issue related to that stack so far https://www.drupal.org/node/2762457, which looks like can be solved by using the latest dev version of php-memcached. Since there are no other reported issues, I believe it's quite stable.