We calculate the persistent spin current inside a quantum ring as a function of the strength of the Rashba or Dresselhaus spin-orbit interaction. We provide analytical results for the spin current of a one-dimensional (1D) ring of non-interacting electrons for comparison. Furthermore, we calculate the time evolution in the transient regime of a two-dimensional (2D) quantum ring connected to electrically biased semi-infinite leads using a time-convolutionless non-Markovian generalized master equation. In the latter case, the electrons are correlated via the Coulomb interaction and the ring can be embedded in a photon cavity with a single mode of linearly polarized photon field. The electron-electron and electron-photon interactions are described by exact numerical diagonalization. The photon field can be polarized perpendicular or parallel to the charge transport. We find a pronounced charge current dip associated with many-electron level crossings at the Aharonov-Casher phase $\Delta\Phi=\pi$, which can be disguised by linearly polarized light. Qualitative agreement is found for the spin currents of the 1D and 2D ring. Quantatively, however, the spin currents are weaker in the more realistic 2D ring, especially for weak spin-orbit interaction, but can be considerably enhanced with the aid of a linearly polarized electromagnetic field. Specific spin current symmetries relating the Dresselhaus spin-orbit interaction case to the Rashba one are found to hold for the 2D ring in the photon cavity.