1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

memcached XF?

Discussion in 'XenForo Questions and Support' started by Wuebit, Feb 8, 2011.

  1. Wuebit

    Wuebit Well-Known Member

    Can memcached be used with XenForo i cant seem to find any posts about it?

    Cheers
     
  2. Vladislav Rastrusny

    Vladislav Rastrusny Active Member

    Yes. Add the following to /library/config.php
    PHP:
    $config['cache']['backend'] = 'Memcached';
    $config['cache']['backendOptions'] = array(
        
    'backendOptions'=>array(
                
    'servers' =>array(
                                array(
                                    
    'host' => 'localhost'// your memcached server ip /address
                                    
    'port' => 11211        // memcached port
                                
    )
                            ),
                 
    'compression' => false
         
    )
    ); 
     
    GeeksChat, Ati and Vodkaholic like this.
  3. Wuebit

    Wuebit Well-Known Member

    Where would you like this big fat kiss coming your way?!
    Cheers dude
     
  4. Vladislav Rastrusny

    Vladislav Rastrusny Active Member

  5. Wuebit

    Wuebit Well-Known Member

    My site loads sooo fast its nutz how can it be this fast o_O instantly loads up for me
    Cheers dude
     
  6. Vladislav Rastrusny

    Vladislav Rastrusny Active Member

    You are welcome :)
     
  7. RobParker

    RobParker Well-Known Member

    To hijack this slightly, what are the advantages/disadvantages of memcache or APC? Which should I be asking our admins to install?

    (APC is too short to search for on here)
     
  8. ragtek

    ragtek Guest

  9. Vladislav Rastrusny

    Vladislav Rastrusny Active Member

    I think better go for APC because it is also a bytecode cache and this will decrease server load also (PHP will not have to compile it's scripts again and again on each request).
     
  10. Wuebit

    Wuebit Well-Known Member

    Hmm i know nothing of APC i thought memcached was good
     
  11. ragtek

    ragtek Guest

    Do you know what memcached is and for what you should use it?:D:p
     
  12. Wuebit

    Wuebit Well-Known Member

    Should use it for speeding up my site no? ;/
    but APC ive never heard of
    I did'nt use memcache till some addon (on vb) came out
     
  13. Vladislav Rastrusny

    Vladislav Rastrusny Active Member

    memcached can cache data. APC can cache both PHP bytecode (to free PHP of obligation to compile it again and again) and data.

    So, if you don't have any PHP cache on your system I suggest you try APC.
     
  14. Wuebit

    Wuebit Well-Known Member

    Thanks where would i find APC i googled it came up with "American Power Conversion" :/ Can both be used also on the server?
    Thanks again
     
  15. Brogan

    Brogan XenForo Moderator Staff Member

  16. Wuebit

    Wuebit Well-Known Member

  17. mlx

    mlx Well-Known Member

    memcached vs. APC?

    Geez ... APC is an opcode cache for PHP. memcached is something totally different.

    You really should be running a PHP opcode cache even if you are utilizing memcached as well.

    That said ... is there a setting for a memcached prefix in XenForo? For running more than 1 XenForo installation with memcached?
     
  18. Wuebit

    Wuebit Well-Known Member

    Hmm not everyone knows everything :(

    anyway with that said is APC a must? anyone got a link i can read about it? also is it easy to set up with XF :D

    Cheers
     
  19. Wuebit

    Wuebit Well-Known Member

  20. mlx

    mlx Well-Known Member

    Vodkaholic likes this.

Share This Page