I'm trying to use the memcached client in a wordpress install for the object cache. However, when I try to use it, I get an error:
Fatal error: Uncaught Error: Class 'Memcache' not found in /app/wordpress/wp-content/object-cache.php:425
Stack trace:
#0 /app/wordpress/wp-content/object-cache.php(63): WP_Object_Cache->__construct()
#1 /app/wordpress/wp-includes/load.php(514): wp_cache_init()
#2 /app/wordpress/wp-settings.php(113): wp_start_object_cache()
#3 /app/wordpress/wp-config.php(125): require_once('/app/wordpress/...')
#4 /app/wordpress/wp-load.php(37): require_once('/app/wordpress/...')
#5 /app/wordpress/wp-blog-header.php(13): require_once('/app/wordpress/...')
#6 /app/wordpress/index.php(17): require('/app/wordpress/...')
#7 {main} thrown in /app/wordpress/wp-content/object-cache.php on line 425
I even added explicitly to my php.ini file:
extension=memcache.so
yet the error persists.
How is one supposed to use Memcache from PHP when the environment cannot load it? The service is enabled in my console, as well. I found some forum post that implied that the Memcache service was not yet released for Flex environment (those were dated from January 2017), but other documentation which says the clients are definitely there. For example
https://cloud.google.com/appengine/docs/flexible/php/using-redislabs-memcache says so. No documentation says I have to do anything special to use it.