fix add/remove category and cache clearing

Fixing the new add/remove category functions, which were not clearing cache properly.  
These are not functions but functions names and should be refer as such.