Changeset 9650 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-manager.php
- Timestamp:
- 03/31/2020 04:06:55 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-manager.php
r9284 r9650 1 1 <?php 2 2 namespace WordPressdotorg\Plugin_Directory\Jobs; 3 use WordPressdotorg\Plugin_Directory\Tools; 3 4 4 5 /** … … 314 315 * 315 316 * @static 316 * @global \wpdb $wpdb 317 * @global \WP_Object_Cache $wp_object_cache 317 * @see Tools::clear_memory_heavy_variables(); 318 318 */ 319 319 public static function clear_memory_heavy_variables() { 320 global $wpdb, $wp_object_cache; 321 322 $wpdb->queries = []; 323 324 if ( is_object( $wp_object_cache ) ) { 325 $wp_object_cache->cache = []; 326 $wp_object_cache->group_ops = []; 327 $wp_object_cache->memcache_debug = []; 328 } 320 Tools::clear_memory_heavy_variables(); 329 321 } 330 322
Note: See TracChangeset
for help on using the changeset viewer.