Skip to content

Commit

Permalink
Remove tool 'purge' for management of UFS/AUFS/DiskD caches (#1541)
Browse files Browse the repository at this point in the history
  • Loading branch information
yadij authored and squid-anubis committed Oct 27, 2023
1 parent 0685b56 commit f47406c
Show file tree
Hide file tree
Showing 20 changed files with 23 additions and 3,177 deletions.
133 changes: 0 additions & 133 deletions CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -1765,139 +1765,6 @@ tools/helper-mux.pl:

==============================================================================

tools/purge/conffile.cc,
tools/purge/conffile.hh

// Author: Jens-S. V?ckler <[email protected]>

// (c) 2000 Lehrgebiet Rechnernetze und Verteilte Systeme
// Universit?t Hannover, Germany
//
// Permission to use, copy, modify, distribute, and sell this software
// and its documentation for any purpose is hereby granted without fee,
// provided that (i) the above copyright notices and this permission
// notice appear in all copies of the software and related documentation,
// and (ii) the names of the Lehrgebiet Rechnernetze und Verteilte
// Systeme and the University of Hannover may not be used in any
// advertising or publicity relating to the software without the
// specific, prior written permission of Lehrgebiet Rechnernetze und
// Verteilte Systeme and the University of Hannover.
//
// THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
// EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
// WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
//
// IN NO EVENT SHALL THE LEHRGEBIET RECHNERNETZE UND VERTEILTE SYSTEME OR
// THE UNIVERSITY OF HANNOVER BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
// INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT
// ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY,
// ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
// SOFTWARE.

==============================================================================

tools/purge/convert.cc,
tools/purge/convert.hh

// Author: Jens-S. V?ckler <[email protected]>

// (c) 1997 Lehrgebiet Rechnernetze und Verteilte Systeme
// Universit?t Hannover, Germany
//
// Permission to use, copy, modify, distribute, and sell this software
// and its documentation for any purpose is hereby granted without fee,
// provided that (i) the above copyright notices and this permission
// notice appear in all copies of the software and related documentation,
// and (ii) the names of the Lehrgebiet Rechnernetze und Verteilte
// Systeme and the University of Hannover may not be used in any
// advertising or publicity relating to the software without the
// specific, prior written permission of Lehrgebiet Rechnernetze und
// Verteilte Systeme and the University of Hannover.
//
// THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
// EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
// WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
//
// IN NO EVENT SHALL THE LEHRGEBIET RECHNERNETZE UND VERTEILTE SYSTEME OR
// THE UNIVERSITY OF HANNOVER BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
// INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT
// ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY,
// ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
// SOFTWARE.

==============================================================================

tools/purge/copyout.cc,
tools/purge/copyout.hh,
tools/purge/purge.cc,
tools/purge/squid-tlv.cc,
tools/purge/squid-tlv.hh

// Author: Jens-S. V?ckler <[email protected]>

// (c) 1999 Lehrgebiet Rechnernetze und Verteilte Systeme
// Universit?t Hannover, Germany
//
// Permission to use, copy, modify, distribute, and sell this software
// and its documentation for any purpose is hereby granted without fee,
// provided that (i) the above copyright notices and this permission
// notice appear in all copies of the software and related documentation,
// and (ii) the names of the Lehrgebiet Rechnernetze und Verteilte
// Systeme and the University of Hannover may not be used in any
// advertising or publicity relating to the software without the
// specific, prior written permission of Lehrgebiet Rechnernetze und
// Verteilte Systeme and the University of Hannover.
//
// THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
// EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
// WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
//
// IN NO EVENT SHALL THE LEHRGEBIET RECHNERNETZE UND VERTEILTE SYSTEME OR
// THE UNIVERSITY OF HANNOVER BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
// INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT
// ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY,
// ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
// SOFTWARE.

==============================================================================

tools/purge/signal.cc,
tools/purge/signal.hh,
tools/purge/socket.cc,
tools/purge/socket.hh

// Author: Jens-S. V?ckler <[email protected]>

// (c) 1998 Lehrgebiet Rechnernetze und Verteilte Systeme
// Universit?t Hannover, Germany
//
// Permission to use, copy, modify, distribute, and sell this software
// and its documentation for any purpose is hereby granted without fee,
// provided that (i) the above copyright notices and this permission
// notice appear in all copies of the software and related documentation,
// and (ii) the names of the Lehrgebiet Rechnernetze und Verteilte
// Systeme and the University of Hannover may not be used in any
// advertising or publicity relating to the software without the
// specific, prior written permission of Lehrgebiet Rechnernetze und
// Verteilte Systeme and the University of Hannover.
//
// THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
// EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
// WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
//
// IN NO EVENT SHALL THE LEHRGEBIET RECHNERNETZE UND VERTEILTE SYSTEME OR
// THE UNIVERSITY OF HANNOVER BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
// INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT
// ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY,
// ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
// SOFTWARE.

==============================================================================

shm_portable_segment_name_is_path() implementation:

Derived from boost/interprocess/shared_memory_object.hpp and
Expand Down
1 change: 0 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3091,7 +3091,6 @@ AC_CONFIG_FILES([
tools/Makefile
tools/apparmor/Makefile
tools/helper-mux/Makefile
tools/purge/Makefile
tools/systemd/Makefile
tools/sysvinit/Makefile
])
Expand Down
22 changes: 22 additions & 0 deletions doc/release-notes/release-7.sgml.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ The Squid-@SQUID_RELEASE@ change history can be <url url="https://github.com/squ
<itemize>
<item>removed support for the cache_object URI scheme
<item>Cache Manager changes
<item>Removed purge tool
</itemize>

<p>Most user-facing changes are reflected in squid.conf (see further below).
Expand All @@ -57,6 +58,27 @@ The Squid-@SQUID_RELEASE@ change history can be <url url="https://github.com/squ

</descrip>

<sect1>Removed purge tool
<p>The <em>purge</em> tool (also known as <em>squidpurge</em>, and <em>squid-purge</em>)
was limited to managing UFS/AUFS/DiskD caches and had problems parsing non-trivial squid.conf files.

<p>The cache contents display and search it provided can be obtained with a script
searching the cache manager <em>objects</em> report.

<p>This tool used the custom <em>PURGE</em> HTTP method to remove cache
objects. This can be performed directly on any Squid configured to allow
the method. Like so:
<verb>
acl PURGE method PURGE
http_access allow localhost PURGE
</verb>
Any HTTP client (such as curl) can then be used to evict objects from the cache, for example:
<verb>
curl -XPURGE --proxy http://127.0.0.1:3128 http://url.to/evict/
</verb>
Alternatively the HTCP <em>CLR</em> mechanism can be used.


<sect>Changes to squid.conf since Squid-@SQUID_RELEASE_OLD@
<p>
This section gives an account of those changes in three categories:
Expand Down
2 changes: 0 additions & 2 deletions po4a.conf
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,3 @@
[type: man] src/squid.8.in $lang:doc/manuals/$lang/squid.8.in

[type: man] tools/cachemgr.cgi.8.in $lang:doc/manuals/$lang/cachemgr.cgi.8.in

[type: man] tools/purge/purge.1 $lang:doc/manuals/$lang/purge.1
2 changes: 1 addition & 1 deletion tools/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include $(top_srcdir)/src/Common.am
## we need our local files too (but avoid -I. at all costs)
AM_CPPFLAGS += -I$(srcdir)

SUBDIRS= apparmor helper-mux purge systemd sysvinit
SUBDIRS= apparmor helper-mux systemd sysvinit
EXTRA_DIST=
man_MANS=
DISTCLEANFILES=
Expand Down
34 changes: 0 additions & 34 deletions tools/purge/Makefile.am

This file was deleted.

Loading

0 comments on commit f47406c

Please sign in to comment.