2013-03-08 52 views

回答

1

你應該閱讀它

function clearCache($params = null, $type = 'views', $ext = '.php') {} 

的文檔塊/文件它規定爲$ PARAMS:

@param string|array $params As String name to be searched for deletion, if name is a directory all files in 
* directory will be deleted. If array, names to be searched for deletion. If clearCache() without params, 
* all files in app/tmp/cache/views will be deleted 
+0

正是我一直在尋找的。 我不知道爲什麼我找不到這個。 – user1537222 2013-03-08 12:53:24

+0

該代碼是開源的:) https://github.com/cakephp/cakephp/blob/master/lib/Cake/basics.php#L451 – mark 2013-03-08 12:55:12