Recent content by Erik P.

  1. Erik P.

    Fixed Thread view counter update causing poor performance on galera cluster

    We also worked around the cluster compatibility issues with an addon.
  2. Erik P.

    Fixed Thread view counter update causing poor performance on galera cluster

    @Mike thanks for your reply. The issue with FOR UPDATE is one of write consistency in the cluster. It's explained in detail in this article: https://www.mirantis.com/openstack-portal/external-tutorials/understanding-reservations-concurrency-locking-nova/ The crux is the FOR UPDATE write intent...
  3. Erik P.

    Fixed Thread view counter update causing poor performance on galera cluster

    The use of TRUNCATE TABLE in XenForo_Model_Thread::updateThreadViews is causing seizures on our galera cluster leading to poor performance. I replaced 'TRUNCATE TABLE xf_thread_view' with 'DELETE FROM xf_thread_view' and attached a graph of the results. The point where my change was deployed can...
  4. Erik P.

    How to add user group permission in my addon

    It's in that source file. Take some time and study it. Once you understand how the code works you'll know what you need to do to implement it in your addon.
  5. Erik P.

    Does

    Look in library/Xenforo/ControllerPublic/Login.php for actionLogin() That is the login form submit action.
  6. Erik P.

    How to add user group permission in my addon

    I suggest you study how library/Xenforo/ControllerAdmin/Permission.php does it and do similar. In general if you want to know how to do something then just look at how the Xenforo controller code does it and that is usually your answer. ControllerPublic and ControllerAdmin are a gold mine of...
  7. Erik P.

    extending Xenforo_Error::logException

    I want to log server errors with new relic and am trying to extend the Xenforo_Error::logException method to do that however it doesn't appear that my extended error class is ever used. I've added so tracing code in the ::logException method but it doesn't get executed. Is it not possible to...
  8. Erik P.

    Not a bug Detecting HTTPS

    Same problem happens when SSL is terminated at a load balancer like an F5. Is there a way to implement this without hacking the Zend http request class?
  9. Erik P.

    XenForo CLI - making our lives easier

    Fork it, commit a change and open a pull request. That is all you should need to do.
  10. Erik P.

    Automated deployment tools?

    I found this https://xenforo.com/community/threads/xenforo-cli-making-our-lives-easier.32370/
  11. Erik P.

    Automated deployment tools?

    Thanks for the replies!
  12. Erik P.

    Automated deployment tools?

    Nothing? Does everyone update their add-ons by hand using FTP and a browser?
  13. Erik P.

    What's your philosophy on upgrading xenforo?

    Arbitrary and manual "testing" doesn't change the risk, only the appearance of risk in the same way buying 2 lottery tickets doesn't double you odds of winning. You could go for a week or more before discovering one of the hundreds of features is critically broken, far too long to simply...
  14. Erik P.

    As designed Reply on multi-page thread post order fail

    When you reply to a multi-page thread, say 5 pages long, on other than the last page, ie. page 3 of 5, the new reply appears at the bottom of the page 3, in the middle of the reply stream, instead of redirecting you to the last page where the new reply lives. I can't tell if it's a feature or a...
  15. Erik P.

    Impact of Responsive Ads on AdSense Income

    People on mobile don't click as many ads. If you want to increase your mobile CPM you need to use "native" ads (part of the user experience, not a display/banner ad). Unfortunately that inventory isn't easily accessible to small, non targeted publishers. Mobile engagements are short and direct...
Top Bottom