When the cache is cleared all the nodes are counted twice, this is because they are counted via ajax and via nodeviewcount_node_view()

In my next patch, I removed the line which counts at nodeviewcount_node_view() because this is just triggered when the node is not cached and by default Drupal Cache everything, so it is more reliable count in the ajax counter.

The ajax counter has a bug as well but it was addressed here: #2944004: Ajax counting does not work, so if this patch is going to be used make sure to first apply the other one.

Thanks!

CommentFileSizeAuthor
#2 2968665-2.patch766 bytesgnuget

Comments

gnuget created an issue. See original summary.

gnuget’s picture

Status: Active » Needs review
StatusFileSize
new766 bytes

Patch attached.

keshavv’s picture

I have tested #2 patch . will fix the problem.

adci_contributor’s picture

Thanks for the patch. I applied this for the dev-version.

adci_contributor’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.