Page 1 of 6
Store Cookie In Internal Cache
Posted: Sat Dec 15, 2018 8:37 pm
by tubeman
Hi,
I have selected Store Cookie In Internal Cache but for one of my sites but I can see this kind of cookie in request header in chrome:
Cookie __atuvc=8%7C51; __atuvs=5c155c130b6db498007
On other sites it doesn't happen. I even upgraded to latest build.Any Idea why this could be happening? Also how does Store Cookie In Internal Cache exactly work?
Regards,
Re: Store Cookie In Internal Cache
Posted: Sun Dec 16, 2018 2:45 am
by admin
Hi,
those cookies are not se by SmartCJ
probably ats? atx?
It saves cookies into filecache
Re: Store Cookie In Internal Cache
Posted: Sun Dec 16, 2018 9:00 am
by tubeman
I don't use atx or ats on site thats why wondering how the cookie is showing up.
Re: Store Cookie In Internal Cache
Posted: Sun Dec 16, 2018 9:45 am
by tubeman
Hi,
Thanks, sorry it was cookie from addthis, The cookie is saved in visitors filecache or servers filecache?
Re: Store Cookie In Internal Cache
Posted: Sun Dec 16, 2018 2:41 pm
by admin
Server
Re: Store Cookie In Internal Cache
Posted: Mon Dec 17, 2018 1:49 pm
by tubeman
Thanks, how do I check if script is storing the cookie properly in the servers Filecache?
Re: Store Cookie In Internal Cache
Posted: Mon Dec 17, 2018 1:52 pm
by admin
well, you can set debug out.php in settings to yes
ans then check http headers when you click at thumbs at your site
it should add comments about getting info from cache
Re: Store Cookie In Internal Cache
Posted: Mon Dec 17, 2018 10:38 pm
by tubeman
Hi,
I've been getting these kind errors recently in php logs for sites:
[15-Dec-2018 14:41:37 America/New_York] PHP Fatal error: Uncaught exception 'RedisException' with message 'LOADING Redis is loading the dataset in memory' in /home/httpd/html/domain.com/public_html/scj/includes/libs/cache/redis.cache.php:0
Stack trace:
#0 /home/httpd/html/domain.com/public_html/scj/includes/libs/cache/redis.cache.php(0): Redis->setex()
#1 /home/httpd/html/domain.com/public_html/scj/includes/libs/cache.php(0): RedisCache->set()
#2 /home/httpd/html/domain.com/public_html/scj/includes/libs/Cookie.class.php(0): Cache::set()
#3 /home/httpd/html/domain.com/public_html/out.php(0): Cookie::set()
#4 {main}
thrown in /home/httpd/html/domain.com/public_html/scj/includes/libs/cache/redis.cache.php on line 0
I'm using a mysql server(dbserver) and have redis there, in my config file I have this:
$config['redis_host'] = 'dbserver';
$config['redis_port'] = '6379';
$config['redis_database'] = 2;
Any idea what would be wrong here?
Regards,
Re: Store Cookie In Internal Cache
Posted: Tue Dec 18, 2018 4:06 am
by admin
You can safely ignore those messages
as it says "LOADING Redis is loading the dataset in memory" at that moment
Re: Store Cookie In Internal Cache
Posted: Tue Dec 18, 2018 5:49 pm
by tubeman
Hi,
Thanks for your reply, am also seeing this for sites in php logs:
[17-Dec-2018 02:38:58 America/New_York] PHP Notice: Undefined index: HTTP_HOST in /home/httpd/html/domain.com/public_html/scj/includes/libs/Cookie.class.php on line 10
Any idea what could be causing this?