/*
- * $Id: SwapDir.cc,v 1.7 2005/01/03 16:08:25 robertc Exp $
+ * $Id: SwapDir.cc,v 1.8 2007/04/16 22:10:49 hno Exp $
*
* DEBUG: section ?? Swap Dir base object
* AUTHOR: Robert Collins
if (reconfiguring) {
if (old_read_only != flags.read_only) {
debug(3, 1) ("Cache dir '%s' now %s\n",
- path, flags.read_only ? "Read-Only" : "Read-Write");
+ path, flags.read_only ? "No-Store" : "Read-Write");
}
}
}
bool
SwapDir::optionReadOnlyParse(char const *option, const char *value, int reconfiguring)
{
- if (strcmp(option, "read-only") != 0)
+ if (strcmp(option, "no-store") != 0 && strcmp(option, "read-only") != 0)
return false;
int read_only = 0;
SwapDir::optionReadOnlyDump(StoreEntry * e) const
{
if (flags.read_only)
- storeAppendPrintf(e, " read-only");
+ storeAppendPrintf(e, " no-store");
}
bool
#
-# $Id: cf.data.pre,v 1.432 2007/04/15 14:46:13 serassio Exp $
+# $Id: cf.data.pre,v 1.433 2007/04/16 22:10:49 hno Exp $
#
#
# SQUID Web Proxy Cache http://www.squid-cache.org/
Common options:
- read-only, this cache_dir is read only.
+ no-store, no new objects should be stored to this cache_dir
max-size=n, refers to the max object size this storedir supports.
It is used to initially choose the storedir to dump the object.