| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| I broke something: Config won't show up in menu http://www.steveshipway.org/forum/viewtopic.php?f=2&t=999 |
Page 1 of 1 |
| Author: | Rednarb [ Thu Nov 02, 2006 12:14 pm ] |
| Post subject: | I broke something: Config won't show up in menu |
| Author: | stevesh [ Thu Nov 02, 2006 3:32 pm ] |
| Post subject: | |
OK - if the file is missing from the menu, then that means that either 1) it has routers.cgi*Ignore: yes or 2) it has routers.cgi*InMenu: no or 3) it has routers.cgi*Options: ignore or 4) routers2 doesn't think it has any valid targets From what you say, it looks like the answer is (4). If you have Optimise switched on, then only a cursory check of the file is done when building the list. Basically, this stops the moment it finds a Title[] line. HOWEVER, a file is only treated as 'valid' if it has either an Include: line, or a Target[]: line. Remember that routers2 prefers to have the Target[] line first for a block? I suspect that your first target has the Title[] line before the Target[] line, and so the optimised scan will quit before it confirms a valid title. I agree that it is a bit silly to not realise that a valid Title[] must also mean a valid Target[]... however, the reason for this is because it needs to have the Target line in order to exatrct host names and community strings. However I will fix this for 2.17 |
|
| Author: | Rednarb [ Thu Nov 02, 2006 5:52 pm ] |
| Post subject: | |
Ah I wasn't looking for Title.. just target. I did a Target[_]: placeholder at the top of the cfg since Routers2 doesn't seem to care as long as I use a routers*description or something. (I was trying to streamline my config by eliminating unnecessary text) Of course I dig and read further and according to your docs there is no need to use optimise=yes if I'm using Speedy so I just set optimise=no and all is well. Do you think that will be a problem? Thanks for the prompt response! Eric Brander |
|
| Author: | stevesh [ Fri Nov 03, 2006 9:12 am ] |
| Post subject: | |
Optimise=no is better if you can do it, but unless you are using speedycgi or mod_perl then it can lower performance too much as it reads in all the configs. With optimise=yes, it will try to skip ahead when it thinks it can - but as you see, it has to make some assumptions about the format of the .cfg files. Running with optimise=no is more likely to work correctly as it checks everything. |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|