Jag/logs table cache

Solves http://trac.zentyal.org/ticket/6142 

The original problem was that a cache miss triggered a regeneration of all the tables cache