Most of the time, iOS is clever enough to manage apps and other tasks running in the background, optimizing the RAM accordingly. However, there might be a few times when you need to take the matter into your own hands and clear your iPhone’s RAM manually.
Source : How to Clear RAM on an iPhone (and When You Should)