[wp-meta] [Making WordPress.org] #1299: Some forum topics with long Cyrillic slugs cannot be opened

Making WordPress.org noreply at wordpress.org
Thu Jan 28 01:57:56 UTC 2016


#1299: Some forum topics with long Cyrillic slugs cannot be opened
-----------------------------+----------------------------------
  Reporter:  SergeyBiryukov  |      Owner:
      Type:  defect          |     Status:  new
  Priority:  normal          |  Component:  International Forums
Resolution:                  |   Keywords:
-----------------------------+----------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:5 ocean90]:
 > The reason for the redirects is that the slug is used as a cache key in
 `get_topic()` which exceeds the maximum memcached key size of 250 chars.

 Thanks! I was able to reproduce the issue on a local bbPress 1.x install
 with Memcached.

 [attachment:resolve-topic-slug-collisions.php] is a bbPress 1.x plugin
 that uses the `bb_repermalink` filter to pre-resolve topic slugs to IDs in
 order to bypass the `bb_topic_slug` cache group in `get_topic()`.

 It uses `md5()` of the slug as a cache key and another cache group,
 `bb_topic_slug_md5`, to avoid the length issue, so `get_topic()` gets a
 numeric ID and does not have to resolve the slug itself.

 I've tested it successfully on my install. Any chance to test and deploy
 it on Rosetta?

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


More information about the wp-meta mailing list