Gah, the patch I’m working on is growing larger and larger!
At first, I just wanted to remove the default CSS and use the lines gained (remember the 4000 lines limit I set myself) for a simple interface to set up the style sheet for a new wiki. Basically none of the wikis I saw “out in the wild” used the default style sheet, and lots of people complained that the default style sheet looked crappy.
If I want to save the style sheet on a page, however, I will have to know which pages exist at the very beginning of every single script invokation. This makes a whole lot of optimization unnecessary that the old UseModWiki code already included: No file was read unless absolutely necessary – and that included the cache of all pages. So by default, Oddmuse did not know what pages it “had”. This kind of initialization on demand was used for NearLinks, InterLinks, PermanentAnchors, and RSS URL to interwiki moniker translation. I decided that all of it could be dumped. If somebody felt like saving some CPU cycles, let them set the variables that indicated successful initialization.
#Oddmuse