Expose swapCache command for completeness
Change compile implementation and add new attributes dismissOnClick and dismissDelay