$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>How do i set cron job for my WordPress site?|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

How do i set cron job for my WordPress site?

matteradmin9PV0评论

My target is to run a file to be executed on each day whether the WordPress site runs or not.

How to execute cron file? I have got stuck in this is issue.

This is new task for me and i don't got any correct solution to my question. Please help me to find out the solution.

My target is to run a file to be executed on each day whether the WordPress site runs or not.

How to execute cron file? I have got stuck in this is issue.

This is new task for me and i don't got any correct solution to my question. Please help me to find out the solution.

Share Improve this question asked Aug 28, 2014 at 14:29 Priya jainPriya jain 1211 gold badge1 silver badge5 bronze badges 3
  • 1 I don't think this has anything to do with WordPress. Simply setup cron job on your server to execute PHP file. – Robert hue Commented Aug 28, 2014 at 14:36
  • Can you provide more details? Which file are you talking about? Your question is unclear – Tom J Nowell Commented Aug 28, 2014 at 14:43
  • 1 If you want to run a cron job each day whether Wordpress runs or not, you have to setup the cron job in the server. No way to do it in Wordpress because of the need to execute the cron job whether Wordpress runs or not. – cybmeta Commented Aug 28, 2014 at 15:40
Add a comment  | 

1 Answer 1

Reset to default 1

You can also use one of the web cron services. If you don't have access to a web server or are on a big host that doesn't give you access to a Control Panel then these are great. Actually, I might recommend using them in place of the cron on your server anyway since their GUI makes it easier to set them up. Plus: If you end having to run lots of tasks automatically they have APIs that allow you to quickly add very specific tasks. It's pretty awesome.

https://www.easycron/ https://www.webcron/ https://www.setcronjob/

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far