Skip to main content

Module cache

Module cache 

Source
Expand description

cache:clear 命令 — 对齐 PHP think cache:clear

§PHP 对齐

PHP cache:clear 通过 think\facade\Cache::clear() 清空缓存。 Rust 端 CLI 是独立进程,无法直接访问运行时 CacheManager 实例, 因此通过以下方式实现:

  1. 清除缓存目录(默认 runtime/cache
  2. 输出提示信息

Functions§

execute_cache_clear
执行 cache:clear 命令