Store Cookie In Internal Cache

tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Store Cookie In Internal Cache

Post 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,
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Store Cookie In Internal Cache

Post by admin »

Hi,

those cookies are not se by SmartCJ
probably ats? atx?

It saves cookies into filecache
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Store Cookie In Internal Cache

Post by tubeman »

I don't use atx or ats on site thats why wondering how the cookie is showing up.
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Store Cookie In Internal Cache

Post by tubeman »

Hi,
Thanks, sorry it was cookie from addthis, The cookie is saved in visitors filecache or servers filecache?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Store Cookie In Internal Cache

Post by admin »

Server
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Store Cookie In Internal Cache

Post by tubeman »

Thanks, how do I check if script is storing the cookie properly in the servers Filecache?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Store Cookie In Internal Cache

Post 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
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Store Cookie In Internal Cache

Post 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,
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Store Cookie In Internal Cache

Post by admin »

You can safely ignore those messages
as it says "LOADING Redis is loading the dataset in memory" at that moment
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Store Cookie In Internal Cache

Post 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?
Post Reply