Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not trigger onK2CommentsCounter in some cases #106

Merged
merged 3 commits into from Jan 8, 2014
Merged

Do not trigger onK2CommentsCounter in some cases #106

merged 3 commits into from Jan 8, 2014

Conversation

pgasiorowski
Copy link
Contributor

Hi.

This PR addresses an issue on Item List View when no comments or even comment's counters are to be displayed.

For instance when all of the following Category settings are OFF:

  • Anchor link (with comments counter) to item's comment form [catItemCommentsAnchor]
  • Anchor link (with comments counter) to comment form [itemCommentsAnchor]
  • Comments [itemComments]

the onK2CommentsCounter() is still bein triggered causing unnecessary load and processing by 3rd party plugins.

Please accept this PR as w/o it it's killing my website causing unnecessary 550 database queries w/o caching

kavadas pushed a commit that referenced this pull request Jan 8, 2014
Do not trigger onK2CommentsCounter in some cases
@kavadas kavadas merged commit 7d8ff8e into getk2:master Jan 8, 2014
@pgasiorowski
Copy link
Contributor Author

Thanks!

@pgasiorowski pgasiorowski deleted the patch-1 branch January 8, 2014 10:03
@kavadas
Copy link
Contributor

kavadas commented Jan 8, 2014

You are welcome. Thank you for your commitment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants