if hit on disk, reload into memcache
This commit is contained in:
		
							parent
							
								
									e9ab06e1e9
								
							
						
					
					
						commit
						612cb3768b
					
				@ -770,7 +770,11 @@ function _start_cache() {
 | 
				
			|||||||
				else {
 | 
									else {
 | 
				
			||||||
					header("Content-type: text/html");
 | 
										header("Content-type: text/html");
 | 
				
			||||||
					header("Last-Modified: $gmdate_mod");
 | 
										header("Last-Modified: $gmdate_mod");
 | 
				
			||||||
					$data = @gzuncompress(file_get_contents($_cache_filename));
 | 
										$zdata = @file_get_contents($_cache_filename);
 | 
				
			||||||
 | 
										if(CACHE_MEMCACHE) {
 | 
				
			||||||
 | 
											$_cache_memcache->set($_cache_hash, $zdata, 0, 600);
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
										$data = @gzuncompress($zdata);
 | 
				
			||||||
					if($data) {
 | 
										if($data) {
 | 
				
			||||||
						print $data;
 | 
											print $data;
 | 
				
			||||||
						exit;
 | 
											exit;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user