update sitemap.xml and internal search indexing automatically? - RESOLVED

Permalink 1 user found helpful
I develop with many marketing companies who handle SEO and I've had requests to update the sitemap.xml automatically through the CMS as opposed to generating a new file everytime they have a new blog post or create a new page.

I've always created a new sitemap.xml by going to Dashboard > Systems & Settings > Automated Jobs > Generate the sitemap.xml file. Is there another place where I can change the setting for this somehow?

Similarly I was wondering if there's a way to "Index the Search Engine" automatically as well. If not that's fine but if it's possible I'd like to do this for my clients moving forward. Thanks to all replies.

lackadaize
 
enlil replied on at Permalink Reply
enlil
I know in 5.6.2.1 you can set up job sets to run on page visit. Another option you have for older installs is the Flex Job Scheduler add-on.
drbiskit replied on at Permalink Best Answer Reply 1 Attachment
drbiskit
Hi - Yes you can do this automatically. Ideally you'll use a 'cron job', which is a configuration on your server.

See this thread for more details:
http://www.concrete5.org/community/forums/usage/sheduled-jobs-and-a...

You set this up to access the relevant url provided on your automated jobs page (http://yoursite.com/dashboard/system/optimization/jobs/), and your jobs will then run at a given interval e.g. every 30 mins.

The url will look something like this:
http://yoursite.com/tools/required/jobs?auth=3b0d669824946240c46ad2...

NB - A couple of things about Cron jobs:

1 - If you do set it up yourself, different servers may require slightly different syntax - so you may need to do some additional research/experimentation, or talk to your hosting provider for assistance.

2 - Not all hosting packages will support them, or give you access - often the case with cheaper/shared hosting - So you may either have to request that your provider set it up, or if they don't support it, you can try a 3rd party service such ashttp://easycron.com

--

Alternatively, if you don't want to set up a Cron job, and you are using an up to date version (currently concrete5.6.2.1) - you can set a job/s up to run automatically from within C5 - Take a look at the screengrab attached to see where this control can be found. It's pretty self explanatory. These aren't quite as efficient as having an actual cron set up, because they only run when someone is accessing the site. A good explanation can be found here:
http://www.concrete5.org/community/forums/customizing_c5/adding-min...
lackadaize replied on at Permalink Reply
lackadaize
Thanks for the reply. Super thorough. Exactly what I was looking for.