When there is change in the electric flux there will be a displacement current and when flux is fixed the displacement as well as conduction current will be zero.
ID=ϵ0dϕEdt
During charging and discharging, due to flux variation, some displacement current flows through the capacitor.