<div>On Wed, Oct 3, 2012 at 2:39 PM, Earnie Boyd <span dir="ltr">&lt;<a href="mailto:earnie@users.sourceforge.net" target="_blank">earnie@users.sourceforge.net</a>&gt;</span> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Tue, Oct 2, 2012 at 4:30 PM, Wipe_Out wrote:<br>
&gt; On 2 October 2012 19:57, Earnie Boyd &lt;<a href="mailto:earnie@users.sourceforge.net">earnie@users.sourceforge.net</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Oct 2, 2012 at 2:23 PM, Wipe_Out &lt;<a href="mailto:wipe_out@users.sourceforge.net">wipe_out@users.sourceforge.net</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; On 2 October 2012 17:59, Michael Prasuhn &lt;<a href="mailto:mike@mikeyp.net">mike@mikeyp.net</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; How are you updating the field?<br>
&gt;&gt; &gt;&gt; __________________<br>
&gt;&gt; &gt;&gt; Michael Prasuhn<br>
&gt;&gt; &gt;&gt; <a href="http://mikeyp.net" target="_blank">http://mikeyp.net</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Directly in the database..<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I know its bad and it means none of the Drupal hooks run but its the<br>
&gt;&gt; &gt; only<br>
&gt;&gt; &gt; way we could do this one particular update easily and in testing other<br>
&gt;&gt; &gt; than<br>
&gt;&gt; &gt; it not displaying immediately it doesn&#39;t seem to have any adverse<br>
&gt;&gt; &gt; effects..<br>
&gt;&gt;<br>
&gt;&gt; By directly do you mean using SQL or node_load/node_save?  You should<br>
&gt;&gt; never use SQL to directly update the node.  You may programmatically<br>
&gt;&gt; update it using node_load, modify object parameter then follow with<br>
&gt;&gt; node_save.  This allows all the other node hooks to operate properly.<br>
&gt;<br>
</div><div class="im">&gt; Yes I know but in this case we didn&#39;t have a choice so had to try it.. Its<br>
&gt; just updating a datetime field with a new value.. The testing we did didn&#39;t<br>
&gt; reveal any issues other than the fact that the cache needs to be cleared for<br>
&gt; the new values to show in Drupal..<br>
&gt;<br>
&gt; Originally we tried updating with a CSV through the feeds module but there<br>
&gt; is a timezone bug in feeds that stops this working..<br>
<br>
</div>The node_save() would DTRT with the cache record.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Earnie<br>
-- <a href="https://sites.google.com/site/earnieboyd" target="_blank">https://sites.google.com/site/earnieboyd</a><br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br>If you can do a bootstrap and assuming you know the nid, you can use<div><pre class="php" style="font-size:13px;border:0px;background-color:rgb(246,246,242);margin-top:0px;margin-bottom:0px;padding:1px;vertical-align:baseline;font-family:&#39;courier new&#39;,courier,&#39;lucida console&#39;;white-space:pre-wrap;overflow:auto;color:rgb(34,34,34)">

<code style="border:0px;background-color:rgb(248,248,250)!important;font-size:12px!important;margin:0px;padding:0px!important;vertical-align:baseline;font-family:&#39;Courier New&#39;,&#39;Bitstream Vera Sans Mono&#39;,Monaco,&#39;Lucida Console&#39;,monospace!important;line-height:15px">    <span class="php-function-or-constant" style="border:0px;background-color:transparent;margin:0px;padding:0px;vertical-align:baseline;color:rgb(0,0,170)"><a href="http://api.drupal.org/api/drupal/includes%21common.inc/function/entity_get_controller/7" title="Get the entity controller class for an entity type." class="local" style="border:0px;background-color:transparent;margin:0px;padding:0px;vertical-align:baseline;color:rgb(0,0,170);text-decoration:none;font-weight:bold">entity_get_controller</a></span>(<span class="php-string" style="border:0px;background-color:transparent;margin:0px;padding:0px;vertical-align:baseline;color:rgb(170,0,0)">&#39;node&#39;</span>)-&gt;<span class="php-function-or-constant" style="border:0px;background-color:transparent;margin:0px;padding:0px;vertical-align:baseline;color:rgb(0,0,170)"><a href="http://api.drupal.org/api/search/7/resetCache" title="Multiple implementations exist." class="local" style="border:0px;background-color:transparent;margin:0px;padding:0px;vertical-align:baseline;color:rgb(0,0,170);text-decoration:none;font-weight:bold">resetCache</a></span>(<span class="php-keyword" style="border:0px;background-color:transparent;margin:0px;padding:0px;vertical-align:baseline;color:rgb(0,102,0)">array</span>(<span class="php-variable" style="border:0px;background-color:transparent;margin:0px;padding:0px;vertical-align:baseline;color:rgb(51,51,0)">$node</span>-&gt;<span class="php-function-or-constant" style="border:0px;background-color:transparent;margin:0px;padding:0px;vertical-align:baseline;color:rgb(0,0,170)"><a href="http://api.drupal.org/api/search/7/nid" title="Multiple implementations exist." class="local" style="border:0px;background-color:transparent;margin:0px;padding:0px;vertical-align:baseline;color:rgb(0,0,170);text-decoration:none;font-weight:bold">nid</a></span>));
</code></pre><div>or</div><div><pre class="php" style="border:0px;background-color:rgb(246,246,242);font-size:13px;margin-top:0px;margin-bottom:0px;padding:1px;vertical-align:baseline;font-family:&#39;courier new&#39;,courier,&#39;lucida console&#39;;white-space:pre-wrap;overflow:auto;color:rgb(34,34,34)">

<code style="border:0px;background-color:rgb(248,248,250)!important;font-size:12px!important;margin:0px;padding:0px!important;vertical-align:baseline;font-family:&#39;Courier New&#39;,&#39;Bitstream Vera Sans Mono&#39;,Monaco,&#39;Lucida Console&#39;,monospace!important;line-height:15px">  <span class="php-function-or-constant" style="border:0px;background-color:transparent;margin:0px;padding:0px;vertical-align:baseline;color:rgb(0,0,170)"><a href="http://api.drupal.org/api/search/6/cache_clear_all" title="Multiple implementations exist." class="local" style="border:0px;background-color:transparent;margin:0px;padding:0px;vertical-align:baseline;color:rgb(0,0,170);text-decoration:none;font-weight:bold">cache_clear_all</a></span>();
</code></pre></div><div>if you&#39;re using Drupal 6.</div></div><div><br></div>-- <br>Christian López Espínola <br>Área de Proyectos <br><br>Emergya Consultoría <br>Tfno: +34 954 51 75 77 <br>Fax: +34 954 51 64 73 <br><a href="http://www.emergya.es" target="_blank">www.emergya.es</a><br>