Hello Vick, I'm afraid you are confusing 3 completely different products with similar names. The one you are having trouble with is Memcached Object Cache <https://en-ca.wordpress.org/plugins/memcached/>, a WordPress plugin. The last link you gave plainly refers to redislabs Memcached Cloud <https://redislabs.com/products/memcached-cloud/>.
Both of these products are from third parties and have nothing to do with App Engine's Memcache <https://cloud.google.com/appengine/docs/standard/php/memcache/>. So to answer your question, App Engine's Memcache is indeed unavailable on the PHP Flexible environment. As for the Memcached plugin, the tutorial you linked doesn't cover its installation. I was able to follow this tutorial to create a functioning installation of WordPress on App Engine Flexible. Since the Memcached plugin (and all of WordPress, really) is completely unrelated to the Google Cloud Platform I unfortunately cannot help you figure out why you are running into this specific issue. You might want to ask on the WordPress section of Stack Overflow <https://stackoverflow.com/questions/tagged/wordpress> or on the support page of the Memcached plugin <https://wordpress.org/support/plugin/memcached>. On Wednesday, October 25, 2017 at 11:37:26 PM UTC-4, Vick Khera wrote: > > 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 > > This is a wordpress install from following the directions at > https://cloud.google.com/php/tutorials/wordpress-app-engine-flexible > which mentions the memcached drop-in. > > 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. > > Can someone point me in the right direction? Thanks! > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/a353a059-7bd7-4517-b741-9753541bcb37%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
