Making a function for get actual line.
Fixing horrors of get actual line func.
Get line function works properly and the cache timeout was configured to 1h(I think).
An update