Actions
Bug #2285
closedswapstate_check.php is being run when the Squid cache is null
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/13/2012
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:
Description
When Squid is not keeping a cache (e.g. on nanobsd by default, or of the user doesn't want a cache), swapstate_check.php is still running from crontab. It logs a 'Warning: filesize(): stat failed" message because there is no swap.state file.
Perhaps the swapstate_check.php entry should not be in crontab at all, but that requires a bunch of extra tests make sure it is added to and removed from crontab correctly as the Squid cache settings are changed.
The attached version of swapstate_check.php first tests if harddisk_cache_system is null in the config, and only does the checks if it is NOT null.
Files
Updated by Phillip Davis over 13 years ago
This was resolved by pull request 224 on 14 March 2012.
Updated by Chris Buechler over 13 years ago
- Status changed from New to Resolved
thanks for all your follow ups
Actions