Improved comments in file cache driver.
This commit is contained in:
parent
0ee4239613
commit
55e1055dd7
|
@ -29,17 +29,11 @@ public function has($key)
|
|||
*/
|
||||
public function get($key, $default = null)
|
||||
{
|
||||
// --------------------------------------------------
|
||||
// If the item has already been loaded, return it.
|
||||
// --------------------------------------------------
|
||||
if (array_key_exists($key, $this->items))
|
||||
{
|
||||
return $this->items[$key];
|
||||
}
|
||||
|
||||
// --------------------------------------------------
|
||||
// Does the cache item even exist?
|
||||
// --------------------------------------------------
|
||||
if ( ! file_exists(APP_PATH.'cache/'.$key))
|
||||
{
|
||||
return $default;
|
||||
|
|
Loading…
Reference in New Issue