Clear Database Cache via Code (v12.3.10)
# help-with-umbraco
b
Does anyone know how to trigger the Clear Database Cache functionality via code? We are running into a scenario where we need to run that after a specific content node is published. - The dev already has the notification handler but they need to know how to clear that cache & couldn't find any documentation on it.
n
Hey Blake, I don't know off the top of my head but I'd find out by looking at what API requests is sent when you click the button in the back office..once you know the API request you can find the action on the controller and go from there to find the right service and call.
m
You can inject
IPublishedShapshotService
and call
RebuildAll
9 Views