Sometimes when you move a lot around in DokuWiki, maybe because you changed your layout or went with a new page structure it can be useful to clear everything cache wise in Dokuwiki and reindex the whole thing - This is also true if moving your wiki from one host to another.
For this exercise we will assume that your DokuWiki resides in /var/www/html/dokuwiki
cd /var/www/html/dokuwiki/data sudo rm -rf cache/* sudo rm -rf meta/* sudo rm -rf media_meta/* sudo rm -rf index/*
Do not delete the directories themselves, only their contents.
Optional but recomended - Rebuild the search index
cd /var/www/html/dokuwiki sudo -u www-data php bin/indexer.php rebuild <code> You will see something like the output below. <code> Searching pages... 185 pages found. namespace:page... Indexer: finished done.
Check that /data/index/ now contains freshly timestamped .idx files.
ls -lh /var/www/html/dokuwiki/data/index/