Code Duplication    Length = 16-16 lines in 2 locations

wp-includes/comment.php 1 location

@@ 2573-2588 (lines=16) @@
2570
 *
2571
 * @param int|array $ids Comment ID or an array of comment IDs to remove from cache.
2572
 */
2573
function clean_comment_cache($ids) {
2574
	foreach ( (array) $ids as $id ) {
2575
		wp_cache_delete( $id, 'comment' );
2576
2577
		/**
2578
		 * Fires immediately after a comment has been removed from the object cache.
2579
		 *
2580
		 * @since 4.5.0
2581
		 *
2582
		 * @param int $id Comment ID.
2583
		 */
2584
		do_action( 'clean_comment_cache', $id );
2585
	}
2586
2587
	wp_cache_set( 'last_changed', microtime(), 'comment' );
2588
}
2589
2590
/**
2591
 * Updates the comment cache of given comments.

wp-includes/ms-blogs.php 1 location

@@ 1128-1143 (lines=16) @@
1125
 *
1126
 * @param int|array $ids Network ID or an array of network IDs to remove from cache.
1127
 */
1128
function clean_network_cache( $ids ) {
1129
	foreach ( (array) $ids as $id ) {
1130
		wp_cache_delete( $id, 'networks' );
1131
1132
		/**
1133
		 * Fires immediately after a network has been removed from the object cache.
1134
		 *
1135
		 * @since 4.6.0
1136
		 *
1137
		 * @param int $id Network ID.
1138
		 */
1139
		do_action( 'clean_network_cache', $id );
1140
	}
1141
1142
	wp_cache_set( 'last_changed', microtime(), 'networks' );
1143
}
1144
1145
/**
1146
 * Updates the network cache of given networks.