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);
}