Jump to content

Using Cron Jobs to Rebuild Indexes for Layered Navigation


Recommended Posts

I am using PS 1.4.9, trying to set cron jobs to rebuild the price, URL and attribute indexes nightly, per the layered navigation module's configuration page:

You can set a cron job that will rebuild price index using the following URL:

https://www.MYDOMAIN...35049178&full=1

You can set a cron job that will rebuild URL index using the following URL:

https://www.MYDOMAIN...9178&truncate=1

You can set a cron job that will rebuild attribute index using the following URL:

https://www.MYDOMAIN...oken=3b35049178

 

I have tried entering each of these URLs in (separately) in the command field (after selecting one of the "Common Settings" for scheduling) at my cPanel's cron jobs page. This fails every time.

 

Am I doing something wrong? (I have limited experience with cron jobs, but I have made them work before...).

 

Thanks for any guidance

Edited by jmthd (see edit history)
Link to comment
Share on other sites

I entered this URL in the Command field:

https://www.MYDOMAIN.com/modules/blocklayered/blocklayered-price-indexer.php?token=3b35049178&full=1'>https://www.MYDOMAIN.com/modules/blocklayered/blocklayered-price-indexer.php?token=3b35049178&full=1

 

The automatically-generated email I get from the Cron Daemon reads:

/usr/local/cpanel/bin/jailshell: https://www.MYDOMAIN.com/modules/blocklayered/blocklayered-price-indexer.php?token=3b35049178: No such file or directory

Edited by jmthd (see edit history)
Link to comment
Share on other sites

I entered this URL in the Command field:

https://www.MYDOMAIN...35049178&full=1

 

The automatically-generated email I get from the Cron Daemon reads:

/usr/local/cpanel/bin/jailshell: https://www.MYDOMAIN...oken=3b35049178: No such file or directory

 

you may have better luck contacting your hosting provider as they can help you with correct path to your domain....

  • Like 1
Link to comment
Share on other sites

I found a tip on another forum that recommended replacing the "?" with a space. This produces and email that reads:

1

 

Is that success? I tried for a similar job and got the output:

-1

 

What does that mean?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...