Sunday, October 09 2016
  6 Replies
  5.5K Visits
  Subscribe
hi, i am interested in speedcache.
i want to cache a website that uses k2 cck. But, the item hit counter should work. it doesn't with native joomla cache nor with jotcache.
will it work with speedcache?
Thanks and best regards
D
Hi,

As soon as you use a cache system, K2 script is not called anymore to save response time and server cpu/memory usage.
It will be the save behavior on all cache including SpeedCache.

Best regards.

Damien
V
5 years ago
Yes i know. I am searching for a solution for this.
It would be one database hit, instead of dozens per user. I only want to count, displaing the correct value after dropping cache is sufficient.

I have tried some code for counting, instead of the then frozen core counting code.

The website delivers the content for 2,000 - 15,000 visitors daily, all without caching, only because of the counting issue. The customer want this hit-counter working.

May you have some ideas?

best regards
Martin
D
Hi,

There is no easy solution.
You can extend our own plugin to increase the counter when the cache is served.
But it will not be only one query but a lot more. You need to parse the query string to dectect which k2 article is called and the make a database request to increase your counter.

Or you can override your k2 article view to make an ajax request to increase the counter, but in this case you also need to create your own little component to handle this.

A lot of work for just a counter.

Best regards.
V
5 years ago
I bought it now for testing. Speed Cache allegedly working with K2, but it doesn't cache the items/articles! Only after adding them manually. What do you meanb with: "CCK compatible (Zoo, K2,...)"?

A good point is, that Frontpage and Category pages are now cached, when i disable the Core Cache and the item hits aren't frozen then.

regards
E
5 years ago
Hi, Is any way to make K2 item counter work with speedcache ? I use Jotcache and when cache is enabled hit counter does not work
T
Hi,

I think Damien already gives a reply to that question above:


As soon as you use a cache system, K2 script is not called anymore to save response time and server cpu/memory usage.
It will be the save behavior on all cache including SpeedCache.
Damien


It's quite complicated to solve and require some custom dev to make it works.

Cheers,
  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!