Nirjonadda Well-known member Nov 30, 2017 #1 How to working Defining a Cache in XF 2 for front-end and for the back-end.
Nirjonadda Well-known member Dec 1, 2017 #2 Does XF1 setting are working for XF2 ? https://xenforo.com/help/cache/ Upvote 0 Downvote
Chris D XenForo developer Staff member Dec 1, 2017 #3 See: https://xenforo.com/xf2-docs/manual/cache/ Upvote 0 Downvote
Nirjonadda Well-known member Dec 1, 2017 #4 Chris D said: See: https://xenforo.com/xf2-docs/manual/cache/ Click to expand... Cache Front-End and Back-End are same? No Zend OPcache support ? APC still dead project from PHP 7.0, 7.1 and 7.2 then can add support for APCu ? Upvote 0 Downvote
Chris D said: See: https://xenforo.com/xf2-docs/manual/cache/ Click to expand... Cache Front-End and Back-End are same? No Zend OPcache support ? APC still dead project from PHP 7.0, 7.1 and 7.2 then can add support for APCu ?
Chris D XenForo developer Staff member Dec 1, 2017 #5 Opcache systems just run and work automatically. They don’t require any configuration. That’s not what these cache providers are for. They’re for caching sessions and certain data caches, and that concept really hasn’t changed since XF1. The cache providers listed are the ones we’d recommend. Upvote 0 Downvote
Opcache systems just run and work automatically. They don’t require any configuration. That’s not what these cache providers are for. They’re for caching sessions and certain data caches, and that concept really hasn’t changed since XF1. The cache providers listed are the ones we’d recommend.
Nirjonadda Well-known member Dec 1, 2017 #6 What 'password' need put here For Redis? Code: $config['cache']['enabled'] = true; $config['cache']['provider'] = 'Redis'; $config['cache']['config'] = [ 'host' => '127.0.0.1', 'password' => 'password' ]; Upvote 0 Downvote
What 'password' need put here For Redis? Code: $config['cache']['enabled'] = true; $config['cache']['provider'] = 'Redis'; $config['cache']['config'] = [ 'host' => '127.0.0.1', 'password' => 'password' ];
Chris D XenForo developer Staff member Dec 1, 2017 #7 You can remove it if there isn’t one. Otherwise it would be whatever password you configured in Redis. Upvote 0 Downvote
You can remove it if there isn’t one. Otherwise it would be whatever password you configured in Redis.
Nirjonadda Well-known member Dec 1, 2017 #8 Chris D said: You can remove it if there isn’t one. Otherwise it would be whatever password you configured in Redis. Click to expand... I have not configured Redis password, Its cPanel installed. So its will be after remove the password? Code: $config['cache']['enabled'] = true; $config['cache']['provider'] = 'Redis'; $config['cache']['config'] = [ 'host' => '127.0.0.1', ]; Upvote 0 Downvote
Chris D said: You can remove it if there isn’t one. Otherwise it would be whatever password you configured in Redis. Click to expand... I have not configured Redis password, Its cPanel installed. So its will be after remove the password? Code: $config['cache']['enabled'] = true; $config['cache']['provider'] = 'Redis'; $config['cache']['config'] = [ 'host' => '127.0.0.1', ];
MattW Well-known member Dec 1, 2017 #10 @Chris D - is it worth putting something about the namespace option on the Cache help page as well? Upvote 0 Downvote
Chris D XenForo developer Staff member Dec 1, 2017 #11 For Redis? I vaguely remember something about it. But do we even have support for passing that in? Upvote 0 Downvote
MattW Well-known member Dec 1, 2017 #12 Not sure about Redis, but it works with Memcached. https://xenforo.com/community/threads/config-php-memcached.135908/#post-1184362 Was taking that from Mike's post in the above thread. Upvote 0 Downvote
Not sure about Redis, but it works with Memcached. https://xenforo.com/community/threads/config-php-memcached.135908/#post-1184362 Was taking that from Mike's post in the above thread.
R rdn Well-known member Jul 26, 2018 #13 Nirjonadda said: I have not configured Redis password, Its cPanel installed. So its will be after remove the password? Code: $config['cache']['enabled'] = true; $config['cache']['provider'] = 'Redis'; $config['cache']['config'] = [ 'host' => '127.0.0.1', ]; Click to expand... The "," (comma) after 127.0.0.1 should be remove right? Upvote 0 Downvote
Nirjonadda said: I have not configured Redis password, Its cPanel installed. So its will be after remove the password? Code: $config['cache']['enabled'] = true; $config['cache']['provider'] = 'Redis'; $config['cache']['config'] = [ 'host' => '127.0.0.1', ]; Click to expand... The "," (comma) after 127.0.0.1 should be remove right?
Chris D XenForo developer Staff member Jul 26, 2018 #14 Unnecessary trailing commas don't matter in PHP. Upvote 0 Downvote