added code to fill cache
handle number of articles and max article id