Warm Cache
How to call this plugin correctly? (6 posts)

  1. Delete Me
    Posted 5 years ago #

    I'd like to use this plugin but I'm not sure how to call it correctly from a cron job. I tried using wget and curl such as follows:

    wget http://www.xxxx.com/?warm_cache=v&G64Fr*q9at

    But I just get an error that says: "/bin/sh: G64Fr*q9at: command not found"

    Can you provide the correct instructions on utilizing a cron job properly so the plugin works?


  2. Delete Me
    Posted 5 years ago #

    I placed the link in quotes to prevent the error, but it still appears to do nothing except load the link like a normal web page. Any help appreciated!

  3. swanzai
    Posted 5 years ago #

    I think the problem lies in line 103 of warm-cache.php. It uses the command wp_generate_password() to create the variable plugin_warm_cache_api, which is the warm_cache=URL . wp_generate_password() by default uses special characters to be more secure, but these characters don't seem to work with cron or in a URL format in general.
    In my case, % and ) caused either cron to fail, or the URL to just resolve my homepage. You've got a whole cl&sterf*ck.

    Anyway, I changed my plugin_warm_cache_api variable manually in the database, and added $special_chars = false to the wp_generate_password() command for good measure. Seems to have done the trick.

    add_option('plugin_warm_cache_api',wp_generate_password($special_chars = false));

  4. ramon fincken
    Plugin Author

    Posted 5 years ago #

    Calling the plugin should be done using a cronjob on your webhost/webhosting-controlpanel.

    The call you should do is a wget or a curl call. the commands for that differ from operating system (like debian,centos) or controlpanel (like direct admin/plesk)
    Examples http://www.ramonfincken.com/permalink/topic22.html and http://www.ramonfincken.com/permalink/topic23.html

    Placing quotes will help in special characters, I will update the plugin to delete those characters.

    If you copy paste and open the "page" you should see something like this:

    Busy with: http://www.mijnpress.nl/
    Busy with: http://www.mijnpress.nl/2011/pattaas-nl/
    [some more]
    Crawled 58 pages in 47.5321531296 seconds.

  5. ramon fincken
    Plugin Author

    Posted 5 years ago #

    Committing new version right now

    = 1.1.2 =
    Changed: Random password call as mentioned by swanzai http://wordpress.org/support/topic/plugin-warm-cache-how-to-call-this-plugin-correctly

  6. Delete Me
    Posted 5 years ago #

    Haven't revisited this plugin in a while, once I have time I'll give it another try. :-D

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Warm Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic