Function clearCache
Used to delete files in the cache directories, or clear contents of cache directories
Package: Cake
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Located at Cake/basics.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Located at Cake/basics.php
clearCache( string|array $params = null , string $type = 'views' , string $ext = '.php' )
Parameters summary
string|array |
$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