Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author iSaumya

    (@isaumya)

    Hi,
    the plugin uses a very simple PHP if statement to check if Memcache is enabled using class_exists('Memcache'). I also use Memcache on many servers and all of them are showing memcache data perfectly. Can you try running the following PHP code and let me know what do you see:

    <?php echo ( class_exists('Memcache') ? "Can find Memcache class" : "Cannot find Memcache class" ); ?>

    Thread Starter MLG Smokers

    (@nick2bad4u)

    Hmm,

    Cannot find Memcache class

    Any ideas why?

    https://iotahosting.org/cache_test.php

    If you click the link above, it’s a file that changes when held in memcached.

    So it seems to be working somewhere.

    Plugin Author iSaumya

    (@isaumya)

    whats the code behind https://iotahosting.org/cache_test.php page?

    Thread Starter MLG Smokers

    (@nick2bad4u)

    <?php
    $mem = new Memcached();
    $mem->addServer("127.0.0.1", 11211);
    
    $result = $mem->get("blah");
    
    if ($result) {
        echo $result;
    } else {
        echo "No matching key found yet. Let's start adding that now!";
        $mem->set("blah", "I am data!  I am held in memcached!") or die("Couldn't save anything to memcached...");
    }
    ?>

    Thanks for the quick responses.

    -Nick

    Plugin Author iSaumya

    (@isaumya)

    Hi,
    this is the reason behind it: https://stackoverflow.com/questions/1825256/memcache-vs-memcached

    BTW in which plugin it was showing all of your data? Morover, as I don’t have a memcached() enabled server its quite hard for me to test the code.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Memcached Showing as Disabled but other plugins show it as enabled?’ is closed to new replies.