diff options
| author | 2021-03-25 20:27:42 +0000 | |
|---|---|---|
| committer | 2021-03-25 20:27:42 +0000 | |
| commit | 258086ff6831fc0665aeda07d379cd613979dfbc (patch) | |
| tree | 1ae1b2d3b0f426d9611d96e29f1eb6bb7bbff432 | |
| parent | Change help channel logic to use timezone naive stamps (diff) | |
Remove unneeded cache clearing
| -rw-r--r-- | bot/exts/help_channels/_cog.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/bot/exts/help_channels/_cog.py b/bot/exts/help_channels/_cog.py index f60e1a0c2..4031cf3c1 100644 --- a/bot/exts/help_channels/_cog.py +++ b/bot/exts/help_channels/_cog.py @@ -273,8 +273,6 @@ class HelpChannels(commands.Cog): log.trace("Moving or rescheduling in-use channels.") for channel in _channel.get_category_channels(self.in_use_category): - # clear the cache here so moving doesn't rely on old cached messages. - await self._delete_message_time_caches(channel) await self.move_idle_channel(channel, has_task=False) # Prevent the command from being used until ready. @@ -377,15 +375,9 @@ class HelpChannels(commands.Cog): return await _unclaim_channel(channel, claimant_id, closed_on) - async def _delete_message_time_caches(self, channel: discord.TextChannel) -> None: - """Delete message time caches.""" - await _caches.claimant_last_message_times.delete(channel.id) - await _caches.non_claimant_last_message_times.delete(channel.id) - async def _unclaim_channel(self, channel: discord.TextChannel, claimant_id: int, closed_on: str) -> None: """Actual implementation of `unclaim_channel`. See that for full documentation.""" await _caches.claimants.delete(channel.id) - await self._delete_message_time_caches(channel) # Ignore missing tasks because a channel may still be dormant after the cooldown expires. if claimant_id in self.scheduler: |