[wp-trac] [WordPress Trac] #36621: Don't cache the results of wp_mkdir_p() in a persistent cache

WordPress Trac noreply at wordpress.org
Thu Apr 21 15:55:16 UTC 2016


#36621: Don't cache the results of wp_mkdir_p() in a persistent cache
--------------------------+--------------------
 Reporter:  barry         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.5.1
Component:  Media         |     Version:  4.5
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------

Comment (by barry):

 Replying to [comment:1 ocean90]:
 > @barry Out of interest, can you share what was broken exactly?

 Essentially the exact thing mentioned in
 [https://core.trac.wordpress.org/ticket/34359#comment:25 this comment].
 The WordPress.com use case is a bit more complicated, but  basically we
 ended up caching a value for the upload dir from operations run on server
 A and when operations ran on server B and the directory didn't exist, the
 upload just fails because of the persistent cache, rather than trying to
 create the directory.

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


More information about the wp-trac mailing list