async fn get_frequency_with_cache(
    pool: &MySqlPool,
    channel_id: String
) -> Option<i64>