modified cache-function for tags data