Code Duplication    Length = 2-3 lines in 2 locations

Sources/Subs-Members.php 1 location

@@ 127-128 (lines=2) @@
124
		);
125
126
		// Remove any cached data if enabled.
127
		if (!empty($modSettings['cache_enable']) && $modSettings['cache_enable'] >= 2)
128
			cache_put_data('user_settings-' . $user[0], null, 60);
129
	}
130
131
	// Make these peoples' posts guest posts.

Sources/MoveTopic.php 1 location

@@ 678-680 (lines=3) @@
675
	}
676
677
	// Update the cache?
678
	if (!empty($modSettings['cache_enable']) && $modSettings['cache_enable'] >= 3)
679
		foreach ($topics as $topic_id)
680
			cache_put_data('topic_board-' . $topic_id, null, 120);
681
682
	require_once($sourcedir . '/Subs-Post.php');
683