无法清除symfony2应用程序中的APC缓存

时间:2013-05-07 14:31:59

标签: caching symfony apc clear

我无法清除APC缓存输出:

array(15) { ["num_slots"]=> int(521) ["ttl"]=> int(0) ["num_hits"]=> float(6) ["num_misses"]=> float(2) ["num_inserts"]=> float(65) ["expunges"]=> float(0) ["start_time"]=> int(1367936845) ["mem_size"]=> float(12608) ["num_entries"]=> int(2) ["file_upload_progress"]=> int(1) ["memory_type"]=> string(4) "mmap" ["locking_type"]=> string(19) "pthread mutex Locks" ["cache_list"]=> array(2) { [0]=> array(11) { ["type"]=> string(4) "file" ["device"]=> int(0) ["inode"]=> int(0) ["filename"]=> string(59) "/path/web/app_clear.php" ["num_hits"]=> float(0) ["mtime"]=> int(1367935529) ["creation_time"]=> int(1367936893) ["deletion_time"]=> int(0) ["access_time"]=> int(1367936893) ["ref_count"]=> int(0) ["mem_size"]=> int(4240) } [1]=> array(11) { ["type"]=> string(4) "file" ["device"]=> int(0) ["inode"]=> int(0) ["filename"]=> string(53) "/path/web/app.php" ["num_hits"]=> float(6) ["mtime"]=> int(1367929750) ["creation_time"]=> int(1367936848) ["deletion_time"]=> int(0) ["access_time"]=> int(1367936888) ["ref_count"]=> int(0) ["mem_size"]=> int(8368) } } ["deleted_list"]=> array(0) { } ["slot_distribution"]=> array(2) { [10]=> int(1) [125]=> int(1) } } bool(true) bool(true) bool(true) bool(true)

我正在尝试这个:

  var_dump(apc_cache_info());
  var_dump(apc_clear_cache());
  var_dump(apc_clear_cache('tb_sf2'));
  var_dump(apc_clear_cache('user'));
  var_dump(apc_clear_cache('opcode'));

所有var_dump都为true。 代码是通过url hit从php脚本执行的。

BTW:我的symfony2前端控制器=> app.php目前在脚本顶部有die(),用于禁用app。

如何清除缓存?

0 个答案:

没有答案