Marked old cache function as deprecated

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6914 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
the_undefined 2008-05-17 21:44:17 +00:00
parent 72e54d4780
commit d64bf9b3d8

View file

@ -543,6 +543,7 @@ if (!function_exists('clone')) {
* @param mixed $expires A valid strtotime string when the data expires.
* @param string $target The target of the cached data; either 'cache' or 'public'.
* @return mixed The contents of the temporary file.
* @deprecated Please use Cache::write() instead
*/
function cache($path, $data = null, $expires = '+1 day', $target = 'cache') {
if (Configure::read('Cache.disable')) {