diff options
author | emkael <emkael@tlen.pl> | 2024-11-25 23:24:26 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2024-11-25 23:24:26 +0100 |
commit | 07dc74d9e73585d840854c642523f0fc05075df8 (patch) | |
tree | a76bf82f6faee22a57bd6834595894161c98700c /bin/refresh-fb-cache.php | |
parent | 373141ac8765c76f06c496a51b320852447c20ba (diff) |
Fuck off, Zuck
Diffstat (limited to 'bin/refresh-fb-cache.php')
-rwxr-xr-x | bin/refresh-fb-cache.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/refresh-fb-cache.php b/bin/refresh-fb-cache.php index ca50146..6a841de 100755 --- a/bin/refresh-fb-cache.php +++ b/bin/refresh-fb-cache.php @@ -13,7 +13,7 @@ $cacheFiles = glob('../cache/facebook.*'); $fileToFetch = NULL; $oldestCache = PHP_INT_MAX; -foreach ($cacheFiles as $file) { +/*foreach ($cacheFiles as $file) { if (!preg_match('/\.Piwoteka$/', $file)) { $cacheTime = filemtime($file); if ($cacheTime < $oldestCache) { @@ -23,12 +23,12 @@ foreach ($cacheFiles as $file) { $fileToFetch = implode('.', $fileToFetch); } } -} + }*/ -$filesToFetch = ['Piwoteka', 'fermentlodz', $fileToFetch]; +$filesToFetch = ['Piwoteka', 'EtreGourmet']; //, $fileToFetch]; foreach ($filesToFetch as $feed) { - sleep(rand(60, 90)); + sleep(rand(90, 120)); $provider = new \Providers\Facebook($feed, ['force' => TRUE]); if (!$provider->get()) { throw new \Exception(sprintf('Feed %s failed to fetch!', $feed)); |