Keyword

Stop query related to k2 hits update

  • Nirmal Sharma
  • Nirmal Sharma's Avatar Topic Author
  • Offline
  • New Member
More
6 years 4 months ago #168408 by Nirmal Sharma
Stop query related to k2 hits update was created by Nirmal Sharma
Hi,

Whenever a person open a page, query related to k2 items hit's update got executed. If 1000 people open same page(it happens when a campaign starts), k2_items page gets locked as system is trying to update k2 items. And because of this, site goes down for few minutes.

Is there a way that this update query did not get executed so that server remain active even after campaign start?

Thanks
Nirmal

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 4 months ago #168409 by Krikor Boghossian
Replied by Krikor Boghossian on topic Stop query related to k2 hits update
Hello,

This is considered a core hack so please keep a backup
These are the lines to comment out
github.com/getk2/k2/blob/master/components/com_k2/views/item/view.html.php#L117

PS. Caching is a better alternative :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum