Project

General

Profile

Actions

Bug #1301

closed

Squid package become unusable through time if we use large disk cache

Added by Louis-David Perron about 13 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Squid
Target version:
-
Start date:
02/21/2011
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

Description

This happens when we use the default path for the cache dir (/var/squid/cache).

The function squid_resync() calls squid_chown_recursive() for the directory /var/squid, which can takes ages to go through the cache subdirectory.

I don't really know what would be the "perfect" way to fix this, but my first idea of workaround is to put the cache directory outside /var/squid.

Thanks

Actions #1

Updated by chudy fernandez about 13 years ago

Louis-David Perron wrote:

This happens when we use the default path for the cache dir (/var/squid/cache).

The function squid_resync() calls squid_chown_recursive() for the directory /var/squid, which can takes ages to go through the cache subdirectory.

I don't really know what would be the "perfect" way to fix this, but my first idea of workaround is to put the cache directory outside /var/squid.

Thanks

you should put your cache to different HDD

shell chown recursive might be faster than in php code.

change them to

function squid_chown_recursive($dir, $user, $group) {
exec("chown -R $user:$group $dir");
}

Actions #2

Updated by Jim Pingle about 11 years ago

  • Status changed from New to Closed
  • Affected Version deleted (1.2.3)

Package was changed long ago to not do chown on the cache any longer.

Actions

Also available in: Atom PDF