stagger thumbnail cache
This commit is contained in:
		
							parent
							
								
									5ea26a80cc
								
							
						
					
					
						commit
						69cb67fe24
					
				| @ -115,7 +115,7 @@ class RSSImages extends Extension | |||||||
| 		</item> | 		</item> | ||||||
| 		";
 | 		";
 | ||||||
| 
 | 
 | ||||||
|         $cache->set("rss-item-image:{$image->id}", $data, 86400); |         $cache->set("rss-item-image:{$image->id}", $data, rand(43200, 86400)); | ||||||
| 
 | 
 | ||||||
|         return $data; |         return $data; | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -32,7 +32,7 @@ class Themelet extends BaseThemelet | |||||||
|                "</div>\n"; |                "</div>\n"; | ||||||
| 
 | 
 | ||||||
|         // cache for ages; will be cleared in ext/index:onImageInfoSet
 |         // cache for ages; will be cleared in ext/index:onImageInfoSet
 | ||||||
|         $cache->set("thumb-block:{$image->id}", $html, 86400); |         $cache->set("thumb-block:{$image->id}", $html, rand(43200, 86400)); | ||||||
| 
 | 
 | ||||||
|         return $html; |         return $html; | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user