Function clearCache
Used to delete files in the cache directories, or clear contents of cache directories
Package: Cake
Copyright: Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Located at Cake/basics.php
Copyright: Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Located at Cake/basics.php
clearCache( mixed $params = null , string $type = 'views' , string $ext = '.php' )
Parameters summary
mixed |
$params = null |
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 |
string |
$type = 'views' |
Directory in tmp/cache defaults to view directory |
string |
$ext = '.php' |
The file extension you are deleting |
Returns
-
true
if files found and deleted false otherwise