Php Laravel 5-缓存记忆不';行不通

Php Laravel 5-缓存记忆不';行不通,php,laravel,caching,laravel-5,internal-server-error,Php,Laravel,Caching,Laravel 5,Internal Server Error,我尝试使用cache::memory()缓存一些查询;但它不起作用 我的脚本响应代码是500(内部服务器错误) 这是我的密码: $filters = \Cache::remember("cache_filter", 20, function(){ $data['value1'] = MyClass::where('<condition>')->get(); $data['value2'] = MyClass::where('<condition&

我尝试使用cache::memory()缓存一些查询;但它不起作用

我的脚本响应代码是500(内部服务器错误)

这是我的密码:

 $filters = \Cache::remember("cache_filter", 20, function(){
      $data['value1'] = MyClass::where('<condition>')->get();
      $data['value2'] = MyClass::where('<condition>')->get();
      $data['value3'] = MyClass::where('<condition>')->get();

      return $data;
 });     
 return view('custom.show')->with($filters);
$filters=\Cache::记住(“Cache\u filter”,20,function(){
$data['value1']=MyClass::where(“”)->get();
$data['value2']=MyClass::where(“”)->get();
$data['value3']=MyClass::where(“”)->get();
返回$data;
});     
返回视图('custom.show')->带有($filters);
存储
权限=>
777

缓存路径
=>
存储路径('framework/Cache')

有人有主意吗

  • php artisan缓存:清除
  • 如果之前运行过
    php artisan config:cache
    ,则必须从
    bootstrap/cache/
    中删除
    config.php
    文件,否则只需运行第一个命令(1)。
  • 尝试运行缓存数据的代码

  • 将app.php中调试参数的值设为true,以获取有关错误的详细信息。仍然相同-未预览错误。@HerilMuratovic您没有看到堆栈跟踪?否。没有错误。第一次调用时,它会显示数据,但下一次调用都是内部服务器错误,未预览错误。