To give a bit of context, my idea is to create a pre-cache plugin. I would like to cache the entire application before each deployment, so I would do something like: bin/grav clear-cache and then bin/plugin myPlugin precache.
I’m trying to use what has been done on the precache plugin, basically fetching all the routes using $page->content().
Using $grav = Grav::instance();, I then start the initialisation using $grav->process();
I need to do that before trying to access all the pages routes.
But I have an error: E_COMPILE_ERROR - Cannot declare class Grav\Theme\Busuu, because the name is already in use.