Added caching for mail gallery page