Fix bug with cache timestamps.

Erlang returns timestamp as {MegaSecs, Secs, MicroSecs}
thus to calculate the timestamp in seconds the Secs
value cannot be used alone, it must be combined
with MegaSecs * 1000000