Browse Source

adding default configuration for purging, resolves #3 (again)

El RIDO 10 years ago
parent
commit
20cf678a75
1 changed files with 15 additions and 0 deletions
  1. 15 0
      cfg/conf.ini.sample

+ 15 - 0
cfg/conf.ini.sample

@@ -98,6 +98,21 @@ limit = 10
 ; directory to store the traffic limits in
 ; directory to store the traffic limits in
 dir = PATH "data"
 dir = PATH "data"
 
 
+[purge]
+; minimum time limit between two purgings of expired pastes, it is only
+; triggered when pastes are created
+; Set this to 0 to disable purging. Set it to run more frequently, if you are
+; running a large site.
+limit = 300
+
+; maximum amount of expired pastes to delete in one purge
+; Set this to 0 to disable purging. Set it higher, if you are running a large
+; site
+batchsize = 10
+
+; directory to store the purge limit in
+dir = PATH "data"
+
 [model]
 [model]
 ; name of data model class to load and directory for storage
 ; name of data model class to load and directory for storage
 ; the default model "privatebin_data" stores everything in the filesystem
 ; the default model "privatebin_data" stores everything in the filesystem