Git Product home page Git Product logo

Comments (6)

tiefenb avatar tiefenb commented on May 27, 2024 1

I had also problems with memcached cloud, so i swiched back to memachier and added following to wp-content/theme/mytheme/functions.php:

if(is_admin()) {
define('WP_CACHE', false);
unset($sasl_memcached_config);
}

It works fine.

from heroku-wp.

xyu avatar xyu commented on May 27, 2024

Have you tried clearing the cache after switching within the MemCashier interface?

from heroku-wp.

tiefenb avatar tiefenb commented on May 27, 2024

yes I tried it, but it doesn't help

from heroku-wp.

tiefenb avatar tiefenb commented on May 27, 2024

I changed the MemCachier addon to the Memcached-Cloud addon and it works well.

https://addons.heroku.com/memcachedcloud

In this case I have also changed variables in wp-config.php:

if ( !empty( $_ENV["MEMCACHEDCLOUD_SERVERS"] ) ) {
$_mcsettings = parse_url($_ENV["MEMCACHEDCLOUD_SERVERS"]);

define('WP_CACHE', true);
$sasl_memcached_config = array(
    'default' => array(
        array(
            'host' => $_mcsettings["host"],
            'port' => $_mcsettings["port"],
            'user' => $_ENV["MEMCACHEDCLOUD_USERNAME"],
            'pass' => $_ENV["MEMCACHEDCLOUD_PASSWORD"],
        ),
    ),
);

unset($_mcsettings);

}

from heroku-wp.

basilmon92 avatar basilmon92 commented on May 27, 2024

hi @tiefenb can you commit your working heroku-wp code ?

from heroku-wp.

xyu avatar xyu commented on May 27, 2024

I have deprecated the HHVM version and created a new PHP 7 version of Heroku WP. As part of that I have created a new default branch as not to break backwards compat.

In the new branch I am now supporting the new Heroku Redis (https://elements.heroku.com/addons/heroku-redis) datastore as the in memory object-cache store. As such I'm closing this issue.

from heroku-wp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.