"sidebar_online_users" on bd widget page. What is the correct Controller to use>?

Discussion in '[bd] Widget Framework' started by RoldanLT, Nov 25, 2016.

  1. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Where are you using the online user widget? If you use it on the index page, it should already use the existing data available and does not query new data by itself.
     
    1. RoldanLT

      RoldanLT Active Member

  2. RoldanLT

    RoldanLT Active Member

    #4 RoldanLT, Nov 26, 2016
    Last edited: Nov 26, 2016
     
  3. RoldanLT

    RoldanLT Active Member

  4. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Regarding this issue, I think using template + controller callback is a waste since the controller action will do a bunch of stuff which will outweight the saving made by optimized query. The best way to do it is to have an optimized widget built by Xon and bundled in his add-on IMHO.
     
    RoldanLT likes this.
Loading...