Automatic refresh caches after expire time

So, I’ve deeply searched previous topics and find this one

Saying that $_SERVER['SERVER_NAME'] = "https://example.com"; is helpful to force Kirby to set caches into the right folder.

Solved !