I am using Drupal 6.26. When I update my page arguments for example from 150 to 50, I refresh the page and see no changes. I only see the change when I clear the cache from the performance page. The settings for cache are all turned off as I am locally testing Drupal on Windows. Now I know on Drupal 5 you have the boolean flag which is $may_cache but looking at the API this option doesn't exist for Drupal 6.
Is there a way of not clearing the cache every time to see a change?
function usman_menu(){
$items['usman/hello'] = array(
'page callback' => 'usman_example',
'access callback' =>'user_access',
'access arguments' =>array('access content')
);
$items['usman'] = array(
'page callback' => 'usman_begin',
'page arguments' => array('150'),
'access callback' =>'user_access',
'access arguments' =>array('access content')
);
return $items;
}
function usman_begin($id = 20, $message = "YES", $optional = "NO"){
print "Loaded " . __FUNCTION__;
print "<br/>";
print "ID is $id, Message is $message, Option is $optional";
}
OK I have learned something about the menu hooks now. I was just playing with code to see how the paths work with arguments and placeholders. It was refreshing quick enough for me to test and had to resort to clearing the cache. I find this weird, considering there is no option to disable such caching temporarily through the performance page, just for a developer.
Thanks.