summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/refresh-fb-cache.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/refresh-fb-cache.php b/bin/refresh-fb-cache.php
index b8711a0..8c384a6 100755
--- a/bin/refresh-fb-cache.php
+++ b/bin/refresh-fb-cache.php
@@ -1,6 +1,8 @@
#!/usr/bin/env php
<?php
+sleep(rand(35, 70));
+
$BASEPATH = dirname(__FILE__);
chdir($BASEPATH);
@@ -26,6 +28,7 @@ foreach ($cacheFiles as $file) {
$filesToFetch = ['Piwoteka', $fileToFetch];
foreach ($filesToFetch as $feed) {
+ sleep(rand(35, 70));
$provider = new \Providers\Facebook($feed, ['force' => TRUE]);
if (!$provider->get()) {
throw new \Exception(sprintf('Feed %s failed to fetch!', $feed));