|
a/src/common/beaglequeuecache.cpp |
|
b/src/common/beaglequeuecache.cpp |
|
... |
|
... |
33 |
cnf->getConfParam("webcachedir", ccdir);
|
33 |
cnf->getConfParam("webcachedir", ccdir);
|
34 |
if (ccdir.empty())
|
34 |
if (ccdir.empty())
|
35 |
ccdir = "webcache";
|
35 |
ccdir = "webcache";
|
36 |
ccdir = path_tildexpand(ccdir);
|
36 |
ccdir = path_tildexpand(ccdir);
|
37 |
// If not an absolute path, compute relative to config dir
|
37 |
// If not an absolute path, compute relative to config dir
|
38 |
if (ccdir.at(0) != '/')
|
38 |
if (!path_isabsolute(ccdir))
|
39 |
ccdir = path_cat(cnf->getConfDir(), ccdir);
|
39 |
ccdir = path_cat(cnf->getConfDir(), ccdir);
|
40 |
|
40 |
|
41 |
int maxmbs = 40;
|
41 |
int maxmbs = 40;
|
42 |
cnf->getConfParam("webcachemaxmbs", &maxmbs);
|
42 |
cnf->getConfParam("webcachemaxmbs", &maxmbs);
|
43 |
if ((m_cache = new CirCache(ccdir)) == 0) {
|
43 |
if ((m_cache = new CirCache(ccdir)) == 0) {
|