You should be cleaning and lubing your drivetrain once every few rides. If you're riding longer distances or you're riding in muddy or dusty conditions, you will want to clean your drivetrain more frequently. Dirt and grime can prematurely wear out your chain and cassette.