[wp-trac] [WordPress Trac] #49373: Move WP_Object_Cache into its own file

WordPress Trac noreply at wordpress.org
Thu Feb 6 05:27:43 UTC 2020


#49373: Move WP_Object_Cache into its own file
------------------------------+--------------------
 Reporter:  SergeyBiryukov    |      Owner:  (none)
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  5.4
Component:  Cache API         |    Version:
 Severity:  normal            |   Keywords:
  Focuses:  coding-standards  |
------------------------------+--------------------
 Background: #33413, #37035, #37209, #37827, #47775.

 In the tickets linked above, most of WP core classes were moved to their
 own files to conform to [https://make.wordpress.org/core/handbook/best-
 practices/coding-standards/php/#naming-conventions naming conventions] in
 WordPress coding standards.

 The same should be done for the `WP_Object_Cache` class, which currently
 resides in `wp-includes/cache.php` and should be moved to `wp-includes
 /class-wp-object-cache.php`.

 For backward compatibility, the new file should be included from `wp-
 includes/cache.php`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49373>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list