List Info

Thread: Question on paths, cache and development routine




Question on paths, cache and development routine
country flaguser name
Sweden
2007-02-14 05:03:33
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


 



Never miss an email again!
Yahoo! Toolbar
alerts you the instant new Mail arrives. Check it out.
Re: Question on paths, cache and development routine
country flaguser name
Hungary
2007-02-14 05:22:47
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

Re: Question on paths, cache and development routine
country flaguser name
Germany
2007-02-14 06:28:08
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/



Re: Question on paths, cache and development routine
country flaguser name
United States
2007-02-14 07:36:57
Quoting Gabor Hojtsy <gaborhojtsy.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

Re: Question on paths, cache and development routine
country flaguser name
Canada
2007-02-16 11:49:39
> 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


[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )