Mailer.php
authorEdward <edward@roojs.com>
Mon, 15 Dec 2014 08:48:27 +0000 (16:48 +0800)
committerEdward <edward@roojs.com>
Mon, 15 Dec 2014 08:48:27 +0000 (16:48 +0800)
Mailer.php

index 8601f71..0bc3b49 100644 (file)
@@ -457,15 +457,15 @@ class Pman_Core_Mailer {
         $uinfo = posix_getpwuid( posix_getuid () ); 
         $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(dirname($cache))) {
-            mkdir(dirname($cache),0700, true);
-        }
+//        $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(dirname($cache))) {
+//            mkdir(dirname($cache),0700, true);
+//        }
         
         require_once 'HTTP/Request.php';
         $a = new HTTP_Request($url);