pandell / Spagety

Other
0 stars 0 forks source link

Detect Circular Dependencies #12

Open cjasinsk opened 10 years ago

cjasinsk commented 10 years ago

Detect and handle circular dependencies. Currently there is no check for them.

It would only be a problem for autoShow and alwaysShow pages. A circular dependency can exist within regular pages, without these parameters, as the url dictates how far to go.

A simple solution could be to create a circular counter for autoShow / alwaysShow and if the same page has been displayed more than (ex) 3 times then quit.