Project

General

Profile

Bug #1301

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

Added by Louis-David Perron about 9 years ago. Updated about 7 years ago.

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

0%

Estimated time:
Affected 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

History

#1 Updated by chudy fernandez about 9 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");
}

#2 Updated by Jim Pingle about 7 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.

Also available in: Atom PDF