We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a33c61 commit 0b34492Copy full SHA for 0b34492
cron/clear_cache
@@ -0,0 +1 @@
1
+0 0 * * * bash -c "source /api/tmp/environment; cd /api; rake judge0:clear_cache &> /api/log/clear_cache.log"
cron/telemetry
@@ -1 +1 @@
-0 */12 * * * bash -c "source /api/tmp/environment; /api/bin/telemetry > /api/log/telemetry.log 2>&1"
+0 */12 * * * bash -c "source /api/tmp/environment; /api/bin/telemetry &> /api/log/telemetry.log"
lib/tasks/clear_cache.rake
@@ -0,0 +1,7 @@
+desc "Clear cache."
2
+
3
+namespace :judge0 do
4
+ task :clear_cache => :environment do
5
+ Rails.cache.clear
6
+ end
7
+end
0 commit comments