nginx-cache-purge

A bash script for deleting items from Nginx cache

  • 所有者: perusio/nginx-cache-purge
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Bash script for deleting an item or set of items from Nginx cache

Introduction

This simple script removes an item or set of items from
Nginx cache, be it
fastcgi or
proxy.

It accepts a
grep pattern
as argument to search for cached items in the given cache directory.

This script uses grep
basic
regular expressions. Pressuposes the use of
GNU grep.

The script requires rw (read-write) access to the cache
directory.

Usage

  1. Delete foobar.css from the /var/cache/nginx/baz cache.

    nginx-cache-purge "foobar.cs" /var/cache/nginx/baz
    
  2. Delete all JPEG files from the /var/cache/nginx/img cache.

    nginx-cache-purge "\.jpe*g" /var/cache/nginx/img 
    

Installation

  1. Clone the repo:

    git clone git://github.com/perusio/nginx-cache-purge.git
    
  2. Place the script in a convenient place.

  3. Done.

See also

There's another script
on github for inspecting cache items.

主要指標

概覽
名稱與所有者perusio/nginx-cache-purge
主編程語言Shell
編程語言Shell (語言數: 1)
平台
許可證
所有者活动
創建於2011-12-29 06:21:12
推送於2017-05-21 20:57:05
最后一次提交2015-09-14 12:48:47
發布數0
用户参与
星數249
關注者數14
派生數57
提交數13
已啟用問題?
問題數2
打開的問題數2
拉請求數1
打開的拉請求數3
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?