Reads/writes temporary data to cache files or session.
cache( string $path mixed $data null mixed $expires '+1 day' string $target 'cache' )
string | $path | File path within /tmp to save the file. |
mixed | $data = null | The data to save to the temporary file. |
mixed | $expires = '+1 day' | A valid strtotime string when the data expires. |
string | $target = 'cache' | The target of the cached data; either 'cache' or 'public'. |
mixed
The contents of the temporary file.
© 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.8/function-cache.html