Last modified: 2012-12-30 20:55:25 UTC
The api seem to have both: $this->getMain()->setCacheMode( 'anon-public-user-private' ); and also public function getCacheMode( $params ) { return 'anon-public-user-private'; } I don't really see any need why we need both (though, if someone has a compelling enough reason, this can be WONTFIX'd or something)
Is it at least the case that all core modules use one and not the other? Or is the usage mixed? Maybe use cases would shed more light on why both of these exist.
In core: * 4 usages of $this->getMain()->setCacheMode() * 34 declarations of function getCacheMode( $params ) {} Extensions: * 6 usages of $this->getMain()->setCacheMode() * 19 declarations of function getCacheMode( $params ) {} They do seem to be used somewhat interchangeably..