JosephSilber / page-cache

Caches responses as static files on disk for lightning fast page loads.
MIT License
1.21k stars 118 forks source link

getting cache path not set. #19

Closed nikocraft closed 6 years ago

nikocraft commented 6 years ago

I am getting

Exception Cache path not set.

    if (is_null($base)) {
        throw new Exception('Cache path not set.');
    }

what could be wrong here? I've tested it locally and it works just fine, but after I uploaded it to ftp it gives me that error.

JosephSilber commented 6 years ago

There isn't enough information in this issue to glean any insight into your code. As you said, this works for you locally. You'll have to debug this yourself.

1Caxz commented 3 years ago

If you using laravel lumen try add this on bootstrap/app.php

$app->bind('path.public', function () {
    return '../public/';
});