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

WordPress Trac noreply at wordpress.org
Wed Jul 13 15:05:10 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):

 >I'm against floats, as this will just introduce all kinds of typecasting
 issues with external caches then.


 >What about the trimming of empty groups?

 We can safeguard against that as well in the patch, if desired. I seem to
 recall that `empty(trim())` doesn't work on PHP 5.6 and it may need a
 dedicated variable, which would mean more code.

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

More information about the wp-trac mailing list