Title: Cron job on Google Cloud
Last modified: July 19, 2022

---

# Cron job on Google Cloud

 *  Resolved [Ahmet](https://wordpress.org/support/users/ahmetp83/)
 * (@ahmetp83)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cron-jon-on-google-cloud/)
 * Hi,
 * How to create a cron job on Google Cloud?
 * There are 3 sections:
 * Target type: Http
    URL: HTTP Method: GET (I tried POST and other options too)
 * I cannot enter this code to the URL section: wget -O – “[http://www.mywebsite.com/?action=wpfastestcache&type=preload&#8221](http://www.mywebsite.com/?action=wpfastestcache&type=preload&#8221);
   >/dev/null 2>&1
 * I can only enter [https://www.mywebsite.com/?action=wpfastestcache&type=preload](https://www.mywebsite.com/?action=wpfastestcache&type=preload)
   because it says it must start with http.
 * Run result success but does not create a cache.
 * Preload option is enabled.
    -  This topic was modified 3 years, 9 months ago by [Ahmet](https://wordpress.org/support/users/ahmetp83/).
    -  This topic was modified 3 years, 9 months ago by [Ahmet](https://wordpress.org/support/users/ahmetp83/).

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cron-jon-on-google-cloud/#post-15840137)
 * do you have shell access via terminal?
 *  Thread Starter [Ahmet](https://wordpress.org/support/users/ahmetp83/)
 * (@ahmetp83)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cron-jon-on-google-cloud/#post-15840142)
 * Yes, there is SSH access.
 *  Thread Starter [Ahmet](https://wordpress.org/support/users/ahmetp83/)
 * (@ahmetp83)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cron-jon-on-google-cloud/#post-15840161)
 * I managed to make it work.
 * It works only if I set delete ALL cache. (Under the timeout rules)
 * However, if I set begins with site.com/shop/
 * Then it does not work. I mean it deletes the caches, but this page always says
   completed: /?action=wpfastestcache&type=preload Even though shop pages not cached.
    -  This reply was modified 3 years, 9 months ago by [Ahmet](https://wordpress.org/support/users/ahmetp83/).
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cron-jon-on-google-cloud/#post-15840167)
 * what is “/shop” mean?
 *  Thread Starter [Ahmet](https://wordpress.org/support/users/ahmetp83/)
 * (@ahmetp83)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cron-jon-on-google-cloud/#post-15840173)
 * Sub page.
 * Under the timeout rules, I set delete cache only start with shop.
 * For example, site.com/shop/product1, site.com/shop/product2
 * It deletes pages caches only if the it start with shop. No problem here.
 * But site.com/?action=wpfastestcache&type=preload says completed.
 * However if I set delete ALL cache, then site.com/?action=wpfastestcache&type=
   preload says it is caching pages.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cron-jon-on-google-cloud/#post-15840177)
 * what is “/shop” mean? do you have another wp installation in /shop directory?
 *  Thread Starter [Ahmet](https://wordpress.org/support/users/ahmetp83/)
 * (@ahmetp83)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cron-jon-on-google-cloud/#post-15840196)
 * Sorry if I could not explain. I think it is clear though.
 * On the Delete Cache tab, there is a section called Timeout Rules.
 * So you can set, let’s say every one hour it will delete cache.
 * You can set ALL pages, only the homepage or some pages. I set, /shop/
 * I can set /blog/ whatever. It deletes caches if the URL starts with shop, blog
   whatever.
 * If the setting is clear ALL, then preload works, but if start with, preload not
   working.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cron-jon-on-google-cloud/#post-15840325)
 * this is an expected result. the preload starts when all cache is cleared.
 *  Thread Starter [Ahmet](https://wordpress.org/support/users/ahmetp83/)
 * (@ahmetp83)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cron-jon-on-google-cloud/#post-15840344)
 * I see. Thank you for the information.
 * Actually, I do not need to clear all caches because most of the pages are static,
   and do not get updated.
 * However, shop pages have a booking calendar, so I need to clear caches for these
   pages every day. That’s why I set only shop pages to clear caches.
 * I thought I can preload these shop pages after clearing the caches but it seems
   this option only works with clear “ALL”.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/cron-jon-on-google-cloud/#post-15840348)
 * you are welcome.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Cron job on Google Cloud’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/cron-jon-on-google-cloud/#post-15840348)
 * Status: resolved