News:

Wondering if this will always be free?  See why free is better.

Main Menu

Change caching accelerator?

Started by Adz., January 25, 2017, 02:07:08 PM

Previous topic - Next topic

Adz.

I have memcached and xcache installed on my server. My SMF only detects memcached, i tried looking in the settings file to change the caching but can't seem to find it. How do i change caching accelerator to xcache?

Cheers.

青山 素子

You should only adjust caching in the forum admin area (Admin -> Server Settings -> Caching). If the tool doesn't show up on the dropdown, SMF didn't detect the support it needs to use that tool.

For XCache, you need to make sure that xcache.cacher is "On" (it is by default) and that xcache.size is larger than 0 (it is 0 by default). Use a PHPInfo listing (What is a phpinfo() file?) to check these settings.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Adz.

If 2.1 is detecting the default settings, why isn't the 2.0x not?

Illori

the code is different between the 2.

Adz.

It's still not detecting xcache, i tried to reinstall it but no luck.

青山 素子

Not sure what to suggest. The code for 2.0 to detect XCache is:


elseif (function_exists('xcache_set'))
$detected = 'XCache';

(from Sources/ManageServer.php)
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Adz.

Quote from: 青山 素子 on January 27, 2017, 01:33:50 AM
Not sure what to suggest. The code for 2.0 to detect XCache is:


elseif (function_exists('xcache_set'))
$detected = 'XCache';

(from Sources/ManageServer.php)

I see that code, along with other optimizers.

I only see "SMF has detected that your server has Memcached installed." in the caching section.

Adz.

How can i disable memcached?
Should i comment out


elseif (function_exists('memcache_set'))
$detected = 'Memcached';

Advertisement: