* or TS_UNIX (querycache) format, so be sure to always run them
* through wfTimestamp()
* @return bool
+ * @since 1.18
*/
function usesTimestamps() {
return false;
* will be disabled in miser mode and will not have their results written
* to the querycache table.
* @return Boolean
+ * @since 1.18
*/
public function isCacheable() {
return true;
* @param $limit mixed Numerical limit or false for no limit
* @param $offset mixed Numerical offset or false for no offset
* @return ResultWrapper
+ * @since 1.18
*/
function reallyDoQuery( $limit, $offset = false ) {
$fname = get_class( $this ) . "::reallyDoQuery";
return $dbr->resultObject( $res );
}
+ /**
+ * Parameters and order changed in 1.18
+ */
function doQuery( $limit, $offset = false ) {
if ( $this->isCached() && $this->isCacheable() ) {
return $this->fetchFromCache( $limit, $offset );
* @param $limit mixed Numerical limit or false for no limit
* @param $offset mixed Numerical offset or false for no offset
* @return ResultWrapper
+ * @since 1.18
*/
function fetchFromCache( $limit, $offset = false ) {
$dbr = wfGetDB( DB_SLAVE );