{"version":3,"file":"cache.cjs","names":[],"sources":["../../../../src/rest/commands/utils/cache.ts"],"sourcesContent":["import type { RestCommand } from '../../types.js';\n\n/**\n * Resets both the data and schema cache of Directus. This endpoint is only available to admin users.\n * @returns Nothing\n */\nexport const clearCache =\n\t<Schema>(): RestCommand<void, Schema> =>\n\t(system = false) => ({\n\t\tmethod: 'POST',\n\t\tpath: `/utils/cache/clear${system ? '?system' : ''}`,\n\t});\n"],"mappings":"AAMA,MAAa,OAEX,EAAS,MAAW,CACpB,OAAQ,OACR,KAAM,qBAAqB,EAAS,UAAY,KAChD"}