5. use APCu for cache, and redis for sessions. The config.local.php file should have the following lines: $config['cache_backend'] = 'apc'; $config['session_backend'] = 'redis';
if I change that values in config.local.php the site doesn't work (white page)
I can not understand the point 5 and these configuration doesn't work $config['cache_backend'] = 'apc'; $config['session_backend'] = 'redis'; Exactly what I have to request to the hosting provider or what I have to do Imac?
Hi,
I would like to use/try the recommended settings:
$config['cache_backend'] = 'apc';
$config['session_backend'] = 'redis';
My config is not as simple as stated in the post. Should I just substitute, "apc" for "file" and "redis" for "database" and everything stays the same?
Below is my config.local.php
I am on a lightspeed server, have php 5.6 and have apc and redis extensions. I am using cs-cart version 4.2.4
Thank you,
Bob
// Cache backend
// Available backends: file, sqlite, database, redis
// To use sqlite cache the "sqlite3" PHP module should be installed
$config['cache_backend'] = 'file';
$config['cache_redis_server'] = 'localhost';
$config['cache_redis_global_ttl'] = 0; // set this if your cache size reaches Redis server memory size
// Storage backend for sessions. Available backends: database, redis
$config['session_backend'] = 'database';
$config['session_redis_server'] = 'localhost';
Hi,
I selected redis, apcu, opcache in php5.6 My host lets me select these in cPanel. Then, after checking with my host to make sure I don't have problems, I was informed that on the shared hosting account I have, all of the above are not supported/allowed. I guess if I changed my config, then nothing good would happen!
I assume the recommendations by cs-cart are for those with dedicated servers and VPS. The ones with shared hosting may not be able to use the recommendation. I could have made the changes and then wonder why nothing was working or working worse..
Right now I am using, from my previous post::
$config['cache_backend'] = 'file';
$config['session_backend'] = 'database'
Are there better choices for someone on shared hosting could use?
Thanks,
Bob
OK, but there is no cscart config to be done otherwise, it should automatically speed up?
Understand, mmm. well, I'm afraid that I can not use ACP and redis in my hosting now... IMHO... with the actual configuration is not the best speed I was waiting for. you can try, (the link in my signature) there are not products, is a beta project yet. with the actual configuration loading pictures in the categories is still slow. This is a video uploaded with 4.2 some months ago loading the same pictures:
Yes, now is more fast, but is not awesome, I guess I have to find the way to use that php configuration in another hosting.