欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

清除应用缓存 Clearing the Application Cache

清除应用缓存

问题

你要清楚你的应用程序缓存。

 
 

解决方案

使用` PHP缓存:清除”命令工匠。

 
$ php artisan cache:clear
 

讨论

这是两件事

 
  1. Cache::flush()被称为清空缓存
  2. 这个app/storage/meta/services.json文件被删除。这个文件是createdas Laravel试图优化服务提供商您的应用程序使用加载。

请注意,因为此命令删除一个文件从本地文件系统,如果你有多个服务器上运行你的应用程序必须执行它的每服务器。

来自 http://laravel-recipes.com/recipes/104/clearing-the-application-cache

 

Clearing the Application Cache

 

Problem

You want to clear your application cache.

 
 

Solution

Use the `php artisan cache:clear' command.

 
$ php artisan cache:clear
 

Discussion

This does two things.

 
  1. Cache::flush()is called to empty the cache.
  2. Theapp/storage/meta/services.jsonfile is erased. This file is createdas Laravel tries to optimize the loading of the service providers yourapplication uses.

Please note that since this command deletes a file from the local file system, if you have multiple servers running your application you must execute it on each server.

来自 http://laravel-recipes.com/recipes/104/clearing-the-application-cache

 


普通分类: