Integrating Office365 fall into "how to configure a SAML app" section.
And "Cache Refresh" is "User Management" section. Two things are two different jobs and/or not dependent to each other.
You can perform Office365 (or any other SP/RP ) with a single test user in your Gluu server who has proper attributes; you dont need cache refresh there.
Bottomline is: your question is not correct and we are actually interested to know which doc ( specific section) confused you.