I use Zen
and have copy/pasted the STARTERKIT
to my foo
template.
Devel
is enabled with the "Rebuild the theme registry on every page load" setting on.
In my completely empty template.php
I type in the following and save:
function foo_process_node(&$variables, $hook) {
dpm('test');
}
I then do drush cc all
and refresh page. The message is not shown. If I refresh again the message shows.
If I change test
to foobar
on the 1st refresh I get the old test
and on the second I get foobar
.
Why does this happen and how can I avoid it?
Note that this lagging behavior is the same for preprocess
and process
but not there if I print the message from the foo_page_alter(&$page)
function.
Devel
issue but a more generic one because I'm getting the exact same behavior for error messages. I'm seeing the error message of the previous page load.