Create Cron Job to refresh post?

6 replies
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!
#create #cron #job #post #refresh
  • Profile picture of the author topnichewebsites
    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.
    Signature
    http://pixelcovers.com/ <- eBook add eCovers

    https://www.unicommercesolutions.com <- WordPress Websites and Maintenance
    {{ DiscussionBoard.errors[8803436].message }}
    • Profile picture of the author peacepilgrim
      Thanks for the reply.

      So then how do I go about figuring out how to write the simple script to do the refresh?
      {{ DiscussionBoard.errors[8803601].message }}
  • Profile picture of the author wayfarer
    "refresh the post"? You mean clear the cache? You shouldn't need a cron job to do something like that.
    Signature
    I build web things, server things. I help build the startup Veenome. | Remote Programming Jobs
    {{ DiscussionBoard.errors[8804565].message }}
    • Profile picture of the author peacepilgrim
      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?
      {{ DiscussionBoard.errors[8805260].message }}
  • {{ DiscussionBoard.errors[8805706].message }}

Trending Topics