laravel 缓存文件存储在哪里?

Where are laravel cache files stored?

我有一个应用程序,我的缓存驱动程序是

In config/cache.php
 'default' => env('CACHE_DRIVER', 'file'),

In my .env
 CACHE_DRIVER=file

在我的应用程序中,如果我缓存了一些东西,那么这些缓存文件存储在哪里?

应该在:

storage/framework/cache 

检查过了吗?

缓存将存储在storage/framework/cache

如果这不起作用,请确保您有足够的文件夹权限来访问它。

如果你想访问它。只需通过 keylike:

即可访问它
Cache::get('key');

获取 Laravel 4 和 5.

的缓存文件夹
function getCacheFolder()
{
  // Check version & get folder for Laravel 4
  $app = app();
  if ($app) {
    $ver = $app->VERSION();
    $v = explode('.', $ver);
    if ($v[1] <= 4) {
      return storage_path('cache');
    }
  }

  // Laravel 5
  return storage_path('framework/cache'),
}