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

Making WordPress.org noreply at wordpress.org
Mon Jul 21 15:16:01 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 iandunn):

 It should be easy to get around that by making sure the transient key is
 unique to the data, which is a best practice anyway. Something like:

 {{{
 #!php
 $concatenated_data = $track_slugs . implode( ',', $speaker_ids );
 $transient_key     = 'wordcamp_speaker_ids_' . substr( md5(
 $concatenated_data ), 0, 24 ); // transient keys are limited to 45
 characters
 }}}

 Truncating the MD5 hash technically opens it up to collisions, but it's
 probably rare enough that it won't be an issue in reality.

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


More information about the wp-meta mailing list