Sunday, October 09 2016
6 Replies
6K Visits
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
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
7 years ago
·
#5129 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
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
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
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
7 years ago
·
#5135 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.
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.
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
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
T
7 years ago
·
#5562 Hi,
I think Damien already gives a reply to that question above:
It's quite complicated to solve and require some custom dev to make it works.
Cheers,
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.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »