Question on paths, cache and development routine
I just noticed while trying to update a module to Drupal 5 that I have to: empty the cache table(normal) empty the menu table( not all the time but sometimes) deactivate and re-activate the module(all the time) Otherwise if a path is changed in the menu, even a valid path, Drupal 5 throws a "page not found" Is this the latest rage and status qou or can it be be avoided? Things go very slowly doing it this way. (php5,mysql5,Apache2, Windows2000) Carl Mc Dade ____________________________ Web Developer ____________________________________________________________________________________ Want to start your own business? Learn how on Yahoo! Small Business. http://smallbusiness.yahoo.com/r-index
Carl Mc Dade wrote:
I just noticed while trying to update a module to Drupal 5 that I have to:
empty the cache table(normal) empty the menu table( not all the time but sometimes) deactivate and re-activate the module(all the time)
Otherwise if a path is changed in the menu, even a valid path, Drupal 5 throws a "page not found"
Is this the latest rage and status qou or can it be be avoided? Things go very slowly doing it this way.
(php5,mysql5,Apache2, Windows2000)
Carl, add your menu items in !$may_cache while you develop, and remove the ! when you are ready with the module. Gabor
Quoting Gabor Hojtsy <gabor@hojtsy.hu>:
Carl, add your menu items in !$may_cache while you develop, and remove the ! when you are ready with the module.
I don't remember seeing this hint in the documentation. I'll take a look at the comments for the APIs using it and suggest a change. Earnie
I've found a single visit to administer->menus will clear up the menu mismatch and page not found errors. I do this often when developing modules and changing menus around. You don't have to change anything, just visit administer->menus Dave -----Original Message----- From: development-bounces@drupal.org [mailto:development-bounces@drupal.org] On Behalf Of Gabor Hojtsy Sent: Wednesday, February 14, 2007 3:23 AM To: development@drupal.org Subject: Re: [development] Question on paths, cache and development routine Carl Mc Dade wrote:
I just noticed while trying to update a module to Drupal 5 that I have to:
empty the cache table(normal) empty the menu table( not all the time but sometimes) deactivate and re-activate the module(all the time)
Otherwise if a path is changed in the menu, even a valid path, Drupal 5 throws a "page not found"
Is this the latest rage and status qou or can it be be avoided? Things
go very slowly doing it this way.
(php5,mysql5,Apache2, Windows2000)
Carl, add your menu items in !$may_cache while you develop, and remove the ! when you are ready with the module. Gabor
On 14.02.2007, at 12:03, Carl Mc Dade wrote:
empty the menu table( not all the time but sometimes)
Do never ever empty the menu table. You will delete the custom menu items I created destroying my whole navigation structure. Use menu_rebuild(). Konstantin Käfer – http://kkaefer.com/
Otherwise if a path is changed in the menu, even a valid path, Drupal 5 throws a "page not found"
You are aware that the cache table has been split up, so not matter how many times you "DELETE FROM cache" it will not clear the menu cache? Steven Wittens
participants (6)
-
Carl Mc Dade -
Earnie Boyd -
Gabor Hojtsy -
Konstantin Käfer -
Metzler, David -
Steven Wittens