fix: Correct syntax error in _is_blog_cache_stale function
- Replace incorrect closing braces with 'fi' in conditional statements
This commit is contained in:
		
							
								
								
									
										4
									
								
								qsgen2
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								qsgen2
									
									
									
									
									
								
							@@ -352,13 +352,13 @@ function _is_blog_cache_stale() {
 | 
				
			|||||||
  if [[ ${new_updated_blogs} == "true" ]]; then
 | 
					  if [[ ${new_updated_blogs} == "true" ]]; then
 | 
				
			||||||
    if (${debug}) _msg debug "Blog cache stale: New or updated blogs detected"
 | 
					    if (${debug}) _msg debug "Blog cache stale: New or updated blogs detected"
 | 
				
			||||||
    return 0
 | 
					    return 0
 | 
				
			||||||
  }
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # If cache file doesn't exist, it's stale
 | 
					  # If cache file doesn't exist, it's stale
 | 
				
			||||||
  if [[ ! -f "${blog_cache_file}" ]]; then
 | 
					  if [[ ! -f "${blog_cache_file}" ]]; then
 | 
				
			||||||
    if (${debug}) _msg debug "Blog cache stale: Cache file does not exist"
 | 
					    if (${debug}) _msg debug "Blog cache stale: Cache file does not exist"
 | 
				
			||||||
    return 0
 | 
					    return 0
 | 
				
			||||||
  }
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Check if cache is older than 1 hour (3600 seconds)
 | 
					  # Check if cache is older than 1 hour (3600 seconds)
 | 
				
			||||||
  local cache_mtime=$(stat -c %Y "${blog_cache_file}" 2>/dev/null || echo 0)
 | 
					  local cache_mtime=$(stat -c %Y "${blog_cache_file}" 2>/dev/null || echo 0)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user