caching function is now functional for phams tab

Related to issue #13