* Class to handle enqueueing and running of background jobs
*
* @ingroup JobQueue
- * @since 1.20
+ * @since 1.21
*/
abstract class JobQueue {
protected $wiki; // string; wiki ID
/**
* Get a job queue object of the specified type.
* $params includes:
- * class : what job class to use (determines job type)
+ * class : What job class to use (determines job type)
* wiki : wiki ID of the wiki the jobs are for (defaults to current wiki)
* type : The name of the job types this queue handles
* order : Order that pop() selects jobs, either "timestamp" or "random".
}
/**
- * @return bool Quickly check if the queue is empty
+ * Quickly check if the queue is empty.
+ * Queue classes should use caching if they are any slower without memcached.
+ *
+ * @return bool
*/
final public function isEmpty() {
wfProfileIn( __METHOD__ );