add cache expiration according to entry amount steps SUP-3298 #time 2h
adding configurable default time variable
wrapping logics in seperate function
saving calc time by checking current partner/feed id
return instead of break in for loop
identation
Merge pull request #2036 from kaltura/Jupiter-10.1.0-SUP-3298

add cache expiration according to entry amount steps SUP-3298 #time 2h