diff --git a/Cache.php b/Cache.php
index <HASH>..<HASH> 100644
--- a/Cache.php
+++ b/Cache.php
@@ -156,7 +156,7 @@ class Cache
 	    case 'maxage':
             case 'max-age':
 		// Return false if the file is older than $value
-                $age = filectime($cacheFile) - time();
+                $age = time() - filectime($cacheFile);
                 if ($age > $value) {
                     return false;
                 }
Fixing age checking (see #4)