DataObjects/Core_mailing_list_message.php
authorEdward <edward@roojs.com>
Thu, 20 Feb 2014 08:35:21 +0000 (16:35 +0800)
committerEdward <edward@roojs.com>
Thu, 20 Feb 2014 08:35:21 +0000 (16:35 +0800)
DataObjects/Core_mailing_list_message.php

index 77cc7ab..21346c0 100644 (file)
@@ -239,13 +239,12 @@ class Pman_Core_DataObjects_Core_mailing_list_message extends DB_DataObject
     
     function cachedMailWithOutImages($force = false, $replace_links = true)
     {  
-        $cachePath = session_save_path() . '/email-cache-' . getenv('APACHE_RUN_USER') . '/mail/' . $this->id . '.txt';
+        $cachePath = session_save_path() . '/email-cache-' . getenv('APACHE_RUN_USER') . '/mail/' . $this->tableName() . '-' . $this->id . '.txt';
           
         if (!$force && $this->isGenerated($cachePath)) {
-            //die("generated?");
-            
             return;
         }
+        
         if (!file_exists(dirname($cachePath))) {
             mkdir(dirname($cachePath), 0700, true);
         }