我知道wp_schedule函數會在打開瀏覽器選項卡並且不關閉它時在後臺運行一個類似於ajax的cron。那麼,爲什麼我的功能無法實現? 我改變了我的coumputer時間=我的wordpress設置時間=在php.ini中的GMT時間。但它仍然不起作用,下面是我的代碼。我把它放在一個wordpress插件裏面。所以我必須做什麼? class CronTest {
function __con
我正在使用像這樣的spring-schedule。 @Component
@EnableScheduling
public class ScheduledTasks {
@Autowired
private ISomeJob someJob;
/**
* do a Job every 5 minutes.
*/
@Schedule