[wp-trac] [WordPress Trac] #56198: Check cache key type

WordPress Trac noreply at wordpress.org
Tue Jul 12 16:31:29 UTC 2022


#56198: Check cache key type
-------------------------+--------------------------
 Reporter:  tillkruess   |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  6.1
Component:  Cache API    |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  performance
-------------------------+--------------------------

Comment (by tillkruess):

 @SergeyBiryukov @malthert: Thanks for the suggestions, I've implemented
 them all and tried to make the code as readable as possible given the
 nesting possibilities.

 I've kept the `debug_backtrace()` call for now, because passing in
 `__METHOD__` like @malthert says seems dumb.

 @spacedmonkey asked out floats on GitHub, should we simply disallow them,
 or cast them to strings (seems risky to me).

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


More information about the wp-trac mailing list