Keyword

Stop query related to k2 hits update

  • Nirmal Sharma
  • Nirmal Sharma's Avatar Topic Author
  • Offline
  • New Member
More
4 months 2 weeks ago #168408 by Nirmal Sharma
Nirmal Sharma created the topic: Stop query related to k2 hits update
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.

More
4 months 2 weeks ago #168409 by Krikor Boghossian
Krikor Boghossian replied the 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 :)

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

Moderators: william white