Announcement

Collapse
No announcement yet.

Memcache VS Memcached

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • neogeo
    New Member
    • Dec 2019
    • 26
    • 4.2.5

    [Forum] Memcache VS Memcached

    vBulletin 4.2.5 comes with Memcache on Config.php, however in a Wayne Luke - thread I saw that vB 4.2.5 can also work with Memcached

    I use Php 7.1 and according to their changelogs these would be the latest versions that support Php 7.1

    memcache = 4.0.5.2
    memcached = 3.1.5

    My question is which of the 2 is better? which should I use?: Memcache or Memcached ?
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73076
    • 6.0.X

    #2
    The modern version of the Memory Caching software is called memcached. This is what vBulletin will always use these days. Before PHP 5.2, it was called Memcache.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • neogeo
      New Member
      • Dec 2019
      • 26
      • 4.2.5

      #3
      Originally posted by Wayne Luke
      The modern version of the Memory Caching software is called memcached. This is what vBulletin will always use these days. Before PHP 5.2, it was called Memcache.
      So, tell me if I'm wrong please...

      If I use Php 5.2 (or before) I have to use the 1º code in config.php and memcache

      And If I use php 7.x I have to use the 2º code here and use memcached

      Is it correct?



      1º code: This is the code that is in config.php of vB 4.2.5

      Code:
       $config['Datastore']['class'] = 'vB_Datastore_Memcache';
        
       $config['Misc']['memcacheServers'] = array(
      array(
      'server' => '127.0.0.1',
      'port' => 11211
      ),
      );
      $config['Misc']['memcacheRetry'] = 15; // Retry time in seconds.
      $config['Misc']['memcacheTimeout'] = 1; // Connect timeout in seconds.
      $config['Misc']['memcachePersistent'] = true; // Persistent connections.


      2º code: And this is the code that you used here
      Code:
      $config['Datastore']['class'] = 'vB_Datastore_Memcached';
        
       $i = 0;
      // First Server
      $i++;
      $config['Misc']['memcacheserver'][$i] = '127.0.0.1';
      $config['Misc']['memcacheport'][$i] = 11211;
      $config['Misc']['memcachepersistent'][$i] = true;
      $config['Misc']['memcacheweight'][$i] = 1;
      $config['Misc']['memcachetimeout'][$i] = 1;
      $config['Misc']['memcacheretry_interval'][$i] = 15;

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 73076
        • 6.0.X

        #4
        Yes. As far as I am aware.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment

        • neogeo
          New Member
          • Dec 2019
          • 26
          • 4.2.5

          #5
          Originally posted by Wayne Luke
          Yes. As far as I am aware.
          When I check their prokects I see that both of them have support for php 7.x and 8.x , so I really don't know which I have to use in my vB 4.2.5 ¿any better from the other?


          Memcache have recent stable version with support for php 7.0, 7.1, 7.2, 7.4 and php 8.0







          Memcached also have recent stable version with support for php 7.0, 7.1, 7.2, 7.4 and php 8.0



          ​​

          Comment

          • Wayne Luke
            vBulletin Technical Support Lead
            • Aug 2000
            • 73076
            • 6.0.X

            #6
            This is what we support - https://www.php.net/manual/en/book.memcached.php

            I don't know how to make it more clear. The problem is that you're using 13 year old software that is end of life and no longer has development support.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment

            Related Topics

            Collapse

            Working...
            😀
            🥰
            🤢
            😎
            😡
            👍
            👎