XenForo + caching = AMAZING

I have opcache installed and working. I noticed that it started caching by itself, it looks like I do not have to set anything in the config file, is that correct?

Now, I am trying to get memcache installed and working.

My hosting has installed this:
pecl.php.net/package/memcache

And I also had them install this admin panel for me:
http://blog.endpoint.com/2014/02/phpmemcachedadmin-graphicalweb.html

I then I added this to the config file in the /library:

Code:
$config['cache']['backend'] = 'Memcached';
$config['cache']['backendOptions'] = array(
    'compression' => false,
    'servers' => array(
        array(
            // your memcached server IP /address
            'host' => 'localhost',
           
            // memcached port
            'port' => 11211,
        )
    )
);

But I am getting zero hits/misses in the admin panel and also the site has not sped up. So I am assuming its not working correctly yet. What am I missing?

Appreciate any help I can get. :)
 
In addition to installing it.. you also need to start the service.
You would not believe the number of people that I've helped out that
A) Forgot to start the service after installing it
B) Forgot to add it to the init process so that it starts after a reboot/restart of the server instance

:D
 
Gaaaaaahhhh! :( I keep going back and forth with hosting and still in the same position. Is there somewhere exact instructions on what to do from start to finish?
 
Ok, I found if I added this line to the config.php file, the backend starts caching.

Code:
$config['cache']['enabled'] = true;

However, I then get this error and it breaks the site:
Code:
An exception occurred: Illegal string offset 'visitors' in /home/pfc1775/public_html/community/library/Icewind/MostOnline/Model/OnlineStats.php on line 88

    XenForo_Application::handlePhpError() in Icewind/MostOnline/Model/OnlineStats.php at line 88
    Icewind_MostOnline_Model_OnlineStats->checkMostOnlineSessionCounts() in Icewind/MostOnline/Listener/Proxy.php at line 33
    Icewind_MostOnline_Listener_Proxy::frontControllerPreView()
    call_user_func_array() in XenForo/CodeEvent.php at line 90
    XenForo_CodeEvent::fire() in XenForo/FrontController.php at line 156
    XenForo_FrontController->run() in /home/pfc1775/public_html/community/index.php at line 13

Any ideas?

I have opcache working just fine, nothing was added to the config.php file to get it working, it just worked by itself.

Edit: Got it working, thanks for the help everyone!!! :D

Edit2: The site keeps breaking and I keep getting that error above. :(

Edit3: I disabled Icewind Most online and everything seems smooth now. :D
 
Last edited:
Top Bottom