Create Cron Job to refresh post?

by 6 replies
9
I have not experience with creating a cron job. But I have found on cpanel a form to create one.

What I don't know is the code I would need to instruct a site to refresh; even the homepage would refresh the sticky page, so that wold meet my need to refresh or open a page. I want to open or refresh once or twice a day.

The other question is that it didn't appear to have a way to specify which addon domain to apply it to. If I could do it account wide, that's ok, too. Otherwise, maybe I have to create command for each addon domain.

Any of you more techie guys have any suggestions?
Thanks!
#programming #create #cron #job #post #refresh
  • The cron in your hosting panel is for all subdomains and folder. The Cron is just an action to run something via the path you give it. So you would have to make a script to do whatever you want to happen and the cron would call that script to run at whatever you set the time coding to be.
    • [1] reply
    • Thanks for the reply.

      So then how do I go about figuring out how to write the simple script to do the refresh?
  • "refresh the post"? You mean clear the cache? You shouldn't need a cron job to do something like that.
    • [1] reply
    • No I don't mean to clear the cache. What I need to do is simulate a visitor to the site. So to view a post on the site. I guess it could be the home page, since it has a sticky post. This activates a plugin I am using. If I had traffic, already, then I wouldn't need to do this. But since I don't, this is something I am trying to implement. Suggestions?
      • [1] reply
    • [ 1 ] Thanks

Next Topics on Trending Feed

  • 9

    I have not experience with creating a cron job. But I have found on cpanel a form to create one. What I don't know is the code I would need to instruct a site to refresh; even the homepage would refresh the sticky page, so that wold meet my need to refresh or open a page. I want to open or refresh once or twice a day.