         callback(error)
 
     handleProcessErrors(apmProcess, errorMessage, callback)
+
+  clearOutdatedCache: ->
+    @apmCache.loadOutdated =
+      value: null
+      expiry: 0
 
   loadPackage: (packageName, callback) ->
     args = ['view', packageName, '--json']

    args.push('--compatible', version) if semver.valid(version)
    errorMessage = 'Fetching outdated packages and themes failed.'

    apmProcess = @runCommand args, (code, stdout, stderr) ->
      if code is 0
        try
          packages = JSON.parse(stdout) ? []

          error = createJsonParseError(errorMessage, parseError, stdout)
          return callback(error)

        @apmCache.loadOutdated =
          value: packages
          expiry: Date.now() + @CACHE_EXPIRY

        callback(null, packages)
      else
        error = new Error(errorMessage)
