How far the second pass is from the first decides how hard the recall is
Suppose you have to learn 30 traffic fines. You've gone through them once, and the test is in a week. If you read them a second time straight away, the material is still fresh, and you take it in with almost no thinking; precisely because you don't have to think, it hardly strengthens anything. Come back a day later, and a few of them won't come to mind. You use clues to dig them back out, and that digging is what makes them stick better. Put the second pass off until the sixth day, and the ones you've forgotten have to be learned from scratch, with only one day left before the test.
In 2008 Cepeda and colleagues ran an experiment that stretched the gap between two study sessions from zero to more than a hundred days, then looked at the scores on a final test. As the gap grew, scores first rose, then fell. The longer you want to remember something, the longer the gap that gives the best score; and a gap that's too long costs you less than one that's too short.
Recalling with the book closed lasts longer than reading it again
In 2006 Roediger and Karpicke had college students read short passages. One group read a passage four times; the other read it once and then wrote down what they remembered, three rounds in all. Tested right after studying, the group that read it four times did better. Tested a week later, the result flipped: the readers remembered about 40%, the writers about 60%. Recalling is itself a round of learning. When the cues aren't enough, you dig the material out, and that act of digging strengthens it. Rereading feels smooth because the words are right in front of you, which doesn't show you'll still remember them once the book is closed.
Put the two together and you get self-testing at longer and longer gaps
Two or three days after learning something, close the book and write it out from memory once. After a somewhat longer gap, do it again. Each time, look up the few items you got stuck on, and test those first next time.
These two techniques work best on scattered facts you need to keep for a long time, such as words, drug names or points of law. In Roediger and Karpicke's passage experiment, a week later the recall group remembered twenty percentage points more than the rereading group. For material you can only understand through a whole chain of reasoning, the evidence for the two techniques is weaker, and there is no agreed figure for the best gap.
In practice they often go wrong in two places. One is adding new material too fast. A flashcard app that pushes in a hundred or more new words a day means every one of those words needs reviewing some days later, so the reviews falling due pile up higher and higher, and many people give up within a few weeks. The other is sneaking a look at the answer before trying to recall it. Without the effortful digging, that pass slides back into plain rereading.