Based on your response, I'll try again, but as the developer, you might be a little too close. Clearly you understand the system completely while I'm just a user.
Not true. Being portable from server to server (even across different file and operating systems) is one of DokuWiki's main goals.
I've been using DokuWiki for more than 20 years (it's still live on my website though I haven't written new notes in it for more than 10 years). I wonder if the fact that I started with a version 20 years old is a factor. I have done a lot of upgrades over the years, but I started with a much older version. I've tried following your directions for moving the server and clearing the cache. For whatever reason this hasn't worked for me, yet.
Security hotfixes are rare but always easy to apply (usually you just replace one or two files).
One of my most popular pages is a set of instructions I wrote on how to apply DokuWiki upgrades. Not all of your users find it as easy as you do or I suspect my page wouldn't be very popular. If it's true that you can just replace a file or two, I'm certainly doing it the hard way. My instructions include copying all of its files over the old installation.
https://www.joeldare.com/wiki/upgrading_dokuwiki
Anyway, I'm not trying to beat up DokuWiki. It's a free tool that worked very well for me for a long time and I appreciate you for it. It's just no longer the tool of choice for me for the reasons I outlined above.