Update staples.js

added pubsub need cache for uid regexs