Cannot relocate media folder

I assume thats true. What I have learned from this forum is that it possibly might be a caching problem?

Another solution, which does not require much change in your index.php is the one I have outlined in this post together with this cookbook recipe. This way, your index.php needs only to look like this:

<?php
require 'kirby/bootstrap.php';

$kirby = new Kirby([
  'roots' => [
    'index'   => __DIR__,
  ],
]);

echo $kirby->render();