removed hack queries, changed intval calls to (int) and extracted what could be extracted outside the loop
Revert "removed hack queries, changed intval calls to (int) and extracted what could be extracted outside the loop"; it broke Special:Follwing by adding empty section

This reverts commit fe8af6255543a3bf7fcaac0525f7fa4c831bd7ac.
removed intval() calls and extracted (where possible) executing them for each loop iteration
added instance cache -- decreased php time on Special:Following
white spaces
refactoring: split FollowModel::getWatchList() into 3 seperate private methods which are easier to read; also fixed a small bug introduced in instance caching
PHPDoc update
removed instance caching
removed unnecessary 2nd call to FollowModel::getWatchList
changes after code review: added an access specifier, changed logic with operations on namespaces
removed hack condition
Merge pull request #1491 from Wikia/DAR-1730

DAR-1730 Performance changes connected to Follow extension