-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathconfig.yaml
More file actions
45 lines (34 loc) · 1.41 KB
/
config.yaml
File metadata and controls
45 lines (34 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: tcclick
version: 1
# URL Rewrite
handle:
- rewrite: if(!is_dir() && !is_file() && path ~ "/") goto "/index.php?%{QUERY_STRING}"
- expire: if(path ~ ".js$") time 8640000
- expire: if(path ~ ".css$") time 8640000
- compress: if(out_header["Content-Type"] == "text/html") compress
- compress: if(out_header["Content-Type"] == "application/json") compress
cron:
- description: recalucate daily counter
url: api/recalculate_daily_counter.php?date=yesterday
schedule: 1 0 * * *
- description: recalucate daily counter
url: api/recalculate_daily_counter.php
schedule: 1 0 * * *
- description:
url: api/recalculate_seconds_spent_per_day.php?date=yesterday
schedule: 1 0 * * *
- description: 导出日活跃设备号列表到
url: api/export_daily_active_device_ids.php?date=yesterday
schedule: 0 2 * * *
- description: 计算日留存
url: api/recalculate_daily_retention.php?date=yesterday
schedule: 0 3 * * *
- description: 缓存常见的设备型号,以降低数据库访问频率
url: api/cache_common_data_for_analyze.php
schedule: 0 3 * * *
- description: 删除过早的记录日活跃设备清单的表,以减少数据库占用
url: api/drop_old_daily_active_devices_tables.php
schedule: 10 3 * * *
- description: 删除过早的记录小时活跃设备清单的表,以减少数据库占用
url: api/drop_old_hourly_active_devices_tables.php
schedule: 20 3 * * *