ClearCache
Core CSMS->CS
OCPP 2.0.1
Sent by the CSMS to clear the Charging Station's authorization cache.
Quick Reference
This message has an empty payload: {}
Example Payload
{} Example Full Frame
[
2,
"msg-001",
"ClearCache",
{}
]
Format: [MessageType, MessageId, Action, Payload]
Overview
ClearCache instructs the Charging Station to clear its local authorization cache. This forces subsequent authorization requests to go directly to the CSMS instead of using cached results.
When to Send
- After revoking an RFID card that may be cached
- When troubleshooting authorization issues
- After a local authorization list update to ensure consistency
Expected Response
status:AcceptedorRejected
Usage Notes
- ClearCache only affects the authorization cache, not the local authorization list
- Use
SendLocalListto manage the local authorization list separately - After clearing, the next authorization for each token will require a round-trip to the CSMS
Testing Tips
- Authorize a token, clear the cache, then verify the next authorization goes to the CSMS
- Test that previously cached
Acceptedtokens are re-validated after cache clear
Common Errors
RpcFrameworkError
Cause: Non-empty payload sent
Solution: ClearCache request payload must be an empty object {}