pull/1209/head
Raremaa 2020-12-25 21:36:39 +08:00 committed by GitHub
parent 6fb65d0128
commit 625a89de77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public class RecycledPostCleaningTask {
/** /**
* Clean recycled posts if RECYCLED_POST_CLEANING_ENABLED is true * Clean recycled posts if RECYCLED_POST_CLEANING_ENABLED is true
*/ */
@Scheduled(cron = "0 0 */1 * * *") @Scheduled(cron = "0 0 */1 * * ?")
public synchronized void run() { public synchronized void run() {
Boolean recycledPostCleaningEnabled = optionService.getByPropertyOrDefault(PostProperties.RECYCLED_POST_CLEANING_ENABLED, Boolean.class, false); Boolean recycledPostCleaningEnabled = optionService.getByPropertyOrDefault(PostProperties.RECYCLED_POST_CLEANING_ENABLED, Boolean.class, false);
log.debug("{} = {}", PostProperties.RECYCLED_POST_CLEANING_ENABLED.getValue(), recycledPostCleaningEnabled); log.debug("{} = {}", PostProperties.RECYCLED_POST_CLEANING_ENABLED.getValue(), recycledPostCleaningEnabled);