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
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

© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
http://api.cakephp.org/2.7/function-clearCache.html