[wp-meta] [Making WordPress.org] #561: Allowing filtering of speakers by track

Making WordPress.org noreply at wordpress.org
Sun Jul 20 11:14:13 UTC 2014


#561: Allowing filtering of speakers by track
--------------------------+--------------------------
  Reporter:  hlashbrooke  |      Owner:
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Component:  wordcamp.org
Resolution:               |   Keywords:  has-patch
--------------------------+--------------------------

Comment (by hlashbrooke):

 An issue just occurred to me here that would affect my use case. We plan
 on using `[speakers]` shortcode twice on the same page. The first instance
 would be `[speakers track="talks"]` and the second would be `[speakers
 track="workshops"]`. If we set a transient in the first instance then
 those same speaker IDs would be shown in the second instance, which would
 pretty much defeat the point of the whole thing. It would be the same if
 you used the shortcode on two different pages - moving from one page to
 the other would use the same set of speakers IDs.

 I think, due to the nature of the data that is displayed, we could
 probably do away with the transient to be honest. WordCamps are generally
 3 days long at the most (in most cases they're less), so the amount of
 speakers that will actually be shown isn't so drastic that the page load
 times will be hugely affected by doing two queries for each shortcode
 instance.

 I'm happy to can the transient and will submit an updated patch if thats
 OK with you. Unless you can think of another way around the issue? If you
 could use wildcards in `delete_transient()` then it would be easy, but
 that's not possible at the moment.

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/561#comment:8>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list