Allow the task::log method to take an array of lines and change g2_import.php

helper to use this approach.
This commit is contained in:
Tim Almdal
2009-07-07 12:10:50 -07:00
parent 31969a1d82
commit b0cd0a52be
2 changed files with 20 additions and 20 deletions
+4
View File
@@ -53,6 +53,10 @@ class Task_Model extends ORM {
$key = $this->_cache_key();
$log = Cache::instance()->get($key);
if (is_array($msg)) {
$msg = implode("\n", $msg);
}
// Save for 30 days.
$log .= !empty($log) ? "\n" : "";
Cache::instance()->set($key, "$log{$msg}",