Bug #1301
closedSquid package become unusable through time if we use large disk cache
0%
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
Updated by chudy fernandez over 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");
}
Updated by Jim Pingle almost 12 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.