Method: Xunch::NginxCacheHelper#cache
- Defined in:
- lib/xunch/utils/nginx_cache_helper.rb
#cache(path) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/xunch/utils/nginx_cache_helper.rb', line 37 def cache(path) respose = nil begin respose = @http.get(path) rescue SocketError => e raise e end if respose == nil || respose.code != "200" return false else return true end end |