Author: david
Date: Thu Aug 2 14:03:51 2012
New Revision: 12031
Log:
Call QubitNote::clearCache() only when updating an existing note
Modified:
trunk/lib/QubitFlatfileImport.class.php
Modified: trunk/lib/QubitFlatfileImport.class.php
==============================================================================
--- trunk/lib/QubitFlatfileImport.class.php Thu Aug 2 13:56:54 2012
(r12030)
+++ trunk/lib/QubitFlatfileImport.class.php Thu Aug 2 14:03:51 2012
(r12031)
@@ -885,7 +885,6 @@
foreach($textArray as $i => $text)
{
- QubitNote::clearCache();
$options = array();
if ($transformationLogic)
@@ -919,6 +918,10 @@
if (isset($options['noteId']))
{
+ // Clearing the cache seems to prevent a weird issue with trying to save
+ // a cached version of the note? In any case, it makes it work (!?)
+ QubitNote::clearCache();
+
$note = QubitNote::getById($options['noteId']);
}
else
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.