removed caching in filter_activitynames
MDL-33774 get rid of cache in global var