Changeset 9284 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-plugin-support-resolved.php
- Timestamp:
- 11/20/2019 06:59:20 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-plugin-support-resolved.php
r6571 r9284 70 70 } 71 71 72 self::stop_the_insanity();72 Manager::clear_memory_heavy_variables(); 73 73 } 74 74 } 75 75 76 /**77 * Clear caches for memory management.78 *79 * @static80 * @global \wpdb $wpdb81 * @global \WP_Object_Cache $wp_object_cache82 */83 protected static function stop_the_insanity() {84 global $wpdb, $wp_object_cache;85 86 $wpdb->queries = [];87 88 if ( is_object( $wp_object_cache ) ) {89 $wp_object_cache->cache = [];90 $wp_object_cache->group_ops = [];91 $wp_object_cache->memcache_debug = [];92 $wp_object_cache->stats = [];93 }94 }95 76 }
Note: See TracChangeset
for help on using the changeset viewer.