[wp-trac] [WordPress Trac] #27565: Recent Posts Widget should include scheme in cache key

WordPress Trac noreply at wordpress.org
Fri Mar 28 18:23:34 UTC 2014


#27565: Recent Posts Widget should include scheme in cache key
--------------------------+-----------------------------
 Reporter:  dllh          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Widgets       |     Version:  2.8
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by dllh):

 Replying to [comment:1 johnbillion]:
 > Even better would be to use `home_url()` in the cache key, but this
 makes it likely to become longer than the allowed key size of 64 chars.

 I guess you could hash the home_url() or something. That makes it a little
 less obvious what you're looking at if you happen to be peeking at cache
 keys, but it's also more resilient to hostname changes.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27565#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list