• Resolved davidki

    (@davidki)


    Hello,

    I want to use advanced configuration of Cache Enabler plugin and I need to create crone for automatic cache clearing.

    In your documentation you write

    “Add the following command to your cron job once ”
    */1 * * * * rm -rf /path/to/your/wordpress/wp-content/cache/cache-enabler/

    I do not have experience with cron task and my webhosting provider allow me only to specify Script URL.

    Please, can you advice me what exactly I have to write to input field? (see image https://www.screencast.com/t/dmzkCVya)

    All wordpress files I have in “www” folder on my FTP.

    So I write this:
    www/wp-content/cache/cache-enabler/

    It does not seem to me that cron with this entry would be able to clear the cache.

    Thank you,

    David

Viewing 2 replies - 1 through 2 (of 2 total)
  • Roger

    (@htgmwcom)

    On a CentOS server (and I am guessing most others), you would SSH into the server as root (or at least an access right to create an executable cron job) and issue the command:

    crontab -e

    then you would type your example command below any others already displayed:

    */1 * * * * rm -rf /path/to/your/wordpress/wp-content/cache/cache-enabler/

    save your cron and exit.

    Note: Just in case, you might want to make sure you backup any cron entries already displayed (when you run the crontab -e command).

    I hope this helps you out a bit!

    • This reply was modified 4 years ago by Roger.
    Anonymous User 16850768

    (@anonymized-16850768)

    @davidki In the provided screenshot the “Script URL” looks to be a URL to a script that would be executed on a schedule that I assume you have the option to define. From the information I have I believe that means you would need to create and upload a script that clears the cache. The documentation we provide for this is related to systems that allow a traditional cron job to be created that allows a command to be ran on a scheduled basis.

    The instructions kindly provided by @htgmwcom will work if that matches your environment. If you’re unable to do this you could also install a cron plugin that will do an action hook on a defined schedule. We have many hooks available to clear the cache depending on what you require: https://www.keycdn.com/support/wordpress-cache-enabler-plugin#hooks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Correct cron settings?’ is closed to new replies.