MCPcopy Index your code
hub / github.com/codecombat/codecombat / clearActivityStatusCache

Method clearActivityStatusCache

app/models/User.js:718–723  ·  view source on GitHub ↗

* Dev/internal: clear per-user activity status local cache. Does not delete server activity. * Gated behind isInternal() or non-production environment.

({ prefix } = {})

Source from the content-addressed store, hash-verified

716 * Gated behind isInternal() or non-production environment.
717 */
718 clearActivityStatusCache ({ prefix } = {}) {
719 if (!this.isInternal() && globalVar.application?.isProduction()) { return }
720 const userId = this.get('_id') || this.id
721 if (!userId) { return }
722 userUtils.clearActivityStatusCache(userId, { prefix })
723 }
724
725 saveCookieConsent (action, description = '') {
726 // Save cookie consent to user's consentHistory

Callers 1

Calls 2

isInternalMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected