cache db queries for Special:TimedMediaHandler for one hour

Change-Id: Ic61bc69d5f66e47bc2701c3e29f9f67ed5753c03
Merge "cache db queries for Special:TimedMediaHandler for one hour"