Skip to content

Commit 5e4429f

Browse files
fix: run AvailablePackageCache at irregular interval #700
This should help prevent a potential conflicts with other repo related tasks on the system.
1 parent 0b951c8 commit 5e4429f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Caches/AvailablePackageCache.inc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ use function RESTAPI\Dispatchers\get_pkg_info;
1212
*/
1313
class AvailablePackageCache extends Cache {
1414
public int $timeout = 120;
15-
public string $schedule = 'hourly';
16-
15+
public string $schedule = '12 * * * *'; # Run at irregular interval to avoid conflicts with repo jobs
1716
/**
1817
* Retrieves the available package information to cache from external repos
1918
*/

0 commit comments

Comments
 (0)