#133 Re-implement the cobwebs widget as a built-in feature of a hub.
Closed: Fixed None Opened 8 years ago by ralph.

Currently, we have a cobwebs widget.

It shows up if the hub is "old".. i.e., if there has been no activity in any of its widgets in some long amount of time (30 days, or 90 days, etc..). It is a nice feature to have, so users can quickly identify stale content and move on.

We have a problem though. It has a should_invalidate function (which works!). Anytime any message comes along the bus, it checks to see if that message would invalidate any other widget on the hub. If so.. then it invalidates the cobwebs widget cache as well.

This is crazy. There's a O(n^2) complexity thing going on for every message.

  • For every message.
  • Check every cobweb widget..
  • which in turn checks every other widget.

That won't do. Since we wanted every hub to have a cobweb widget.. we should just reimplement it as a standard part of every hub (in hubs/templates/hub.html) and dispense with it as a "widget".


Login to comment on this ticket.

Metadata