Mailer.php
authorEdward <edward@roojs.com>
Mon, 15 Dec 2014 09:02:49 +0000 (17:02 +0800)
committerEdward <edward@roojs.com>
Mon, 15 Dec 2014 09:02:49 +0000 (17:02 +0800)
Mailer.php

index 8601f71..50b1457 100644 (file)
@@ -458,11 +458,11 @@ class Pman_Core_Mailer {
         $user = $uinfo['name']; 
         
         $cache = ini_get('session.save_path')."/Pman_Core_Mailer-{$user}/" . md5($url);
-        if (file_exists($cache) and filemtime($cache) > strtotime('NOW - 1 WEEK')) {
-            $ret =  json_decode(file_get_contents($cache), true);
-            $ret['file'] = $cache . '.data';
-            return $ret;
-        }
+//        if (file_exists($cache) and filemtime($cache) > strtotime('NOW - 1 WEEK')) {
+//            $ret =  json_decode(file_get_contents($cache), true);
+//            $ret['file'] = $cache . '.data';
+//            return $ret;
+//        }
         if (!file_exists(dirname($cache))) {
             mkdir(dirname($cache),0700, true);
         }