Tags cache ttl expressed in seconds, small bugfixes, minor improvements