the 24 hour limit can apply to the page count too, making that also 70x faster
This commit is contained in:
		
							parent
							
								
									9b96b44d64
								
							
						
					
					
						commit
						f5edb4fb4e
					
				| @ -277,7 +277,7 @@ class CommentList extends SimpleExtension { | ||||
| 
 | ||||
| 		$total_pages = $database->cache->get("comment_pages"); | ||||
| 		if(empty($total_pages)) { | ||||
| 			$total_pages = (int)($database->get_one("SELECT COUNT(c1) FROM (SELECT COUNT(image_id) AS c1 FROM comments GROUP BY image_id) AS s1") / 10); | ||||
| 			$total_pages = (int)($database->get_one("SELECT COUNT(c1) FROM (SELECT COUNT(image_id) AS c1 FROM comments $where GROUP BY image_id) AS s1") / 10); | ||||
| 			$database->cache->set("comment_pages", $total_pages, 600); | ||||
| 		} | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user