Plugin Author
Ajay
(@ajay)
What’s your site URL?
It could be possible that the code is being added twice.
Thread Starter
Lakjin
(@lakjin)
The code is being added twice, I looked at the source.
Any ideas to prevent this? I’ve disabled it on my website for now, so there isn’t much that would do.
Thread Starter
Lakjin
(@lakjin)
Could the double code be caused by Varnish and/or APC? The plugin was working fine when I used just W3TC with disk page cache.
Plugin Author
Ajay
(@ajay)
Is there a way to disable Varnish temporarily or W3TC temporarily and see if it stops the double adding?
Thread Starter
Lakjin
(@lakjin)
Done. It looks like Varnish is the cause.
Plugin Author
Ajay
(@ajay)
That’s great. Was this resolved or does it come back with Varnish being on?
Thread Starter
Lakjin
(@lakjin)
Ajay,
Here is the odd thing. With Varnish disabled and W3TC (with APC page cache, Memcached object cache), Top 10 still loads its counting script twice on page loads. However, the pages are not appearing to be double counted — page numbers seem to be OK.
Any idea what is going on? I do not have the cache fix option enabled in Top 10.
Also, I haven’t re-enabled Varnish yet so I don’t know.
Plugin Author
Ajay
(@ajay)
So if I understand correctly, addcount.js.php file is loaded twice? Do you see this code immediately one after another or these in two very different parts of the code?