Counting traffic properly while using nginx cache.

Post Reply
alexscj
Posts: 160
Joined: Mon Apr 01, 2013 3:04 pm

Counting traffic properly while using nginx cache.

Post by alexscj »

Hello,

when I enable nginx cache the traffic in is no longer counted properly.
The clicks seem to be counted fine though.

Is there a way to count traffic in properly while having nginx cache enabled?
alexscj
Posts: 160
Joined: Mon Apr 01, 2013 3:04 pm

Re: Counting traffic properly while using nginx cache.

Post by alexscj »

Maybe using javascript but not sure how.
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Counting traffic properly while using nginx cache.

Post by admin »

You can disable nginx cache for this site for example ..
Don't forget to run script update
alexscj
Posts: 160
Joined: Mon Apr 01, 2013 3:04 pm

Re: Counting traffic properly while using nginx cache.

Post by alexscj »

Good one :))

I asked because I need nginx cache enabled.

Can I somehow include the SCJ tracking in pages via javascript or something that is not cached by nginx ?
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Counting traffic properly while using nginx cache.

Post by admin »

What's the point to cache those pages if Smartcj caches it ?
Don't forget to run script update
alexscj
Posts: 160
Joined: Mon Apr 01, 2013 3:04 pm

Re: Counting traffic properly while using nginx cache.

Post by alexscj »

For some reason, the load drops significantly when enabling nginx cache. (using Redis)
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Counting traffic properly while using nginx cache.

Post by admin »

Try w\o redis plz
I saw some issues with redis previously which were fixed by updating redis.

So if the load drops with a regular (file) cache - then there's a problem with redis.
Don't forget to run script update
alexscj
Posts: 160
Joined: Mon Apr 01, 2013 3:04 pm

Re: Counting traffic properly while using nginx cache.

Post by alexscj »

Basically I should switch to Couchbase (from Redis) ?
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Counting traffic properly while using nginx cache.

Post by admin »

You can also try that.
What we need is to compare results.
Don't forget to run script update
Post Reply