Commit 55e1055d authored by Taylor Otwell's avatar Taylor Otwell

Improved comments in file cache driver.

parent 0ee42396
......@@ -29,17 +29,11 @@ class File implements \System\Cache\Driver {
*/
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment