Title: Blocks patterns cache update cron broken?
Last modified: January 30, 2025

---

# Blocks patterns cache update cron broken?

 *  Resolved [Carlo Cannas](https://wordpress.org/support/users/karl94/)
 * (@karl94)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/blocks-patterns-cache-update-cron-broken/)
 * Hi,
 * I found in error logs some issues related to [the cron that updates block patterns cache](https://plugins.trac.wordpress.org/browser/essential-blocks/tags/5.2.3/includes/Core/BlocksPatterns.php#L56).
   It appears that when [the call to `wp_remote_get()`](https://plugins.trac.wordpress.org/browser/essential-blocks/tags/5.2.3/includes/Core/BlocksPatterns.php#L166)
   is reached, `$this->api_url` hasn’t been set yet and it’s still `null`.
 * That makes sense, as that is set only [inside `set_api_url()`](https://plugins.trac.wordpress.org/browser/essential-blocks/tags/5.2.3/includes/Core/BlocksPatterns.php#L111)
   and this method is only called on [requests where an editor is logged-in](https://plugins.trac.wordpress.org/browser/essential-blocks/tags/5.2.3/includes/Core/BlocksPatterns.php#L50).
 * In a cron context I expect that `current_user_can()` check to always fail. If
   that’s correct, the cron never updates the cache.
 * Could you please look into this?

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

 *  Plugin Support [Zeba Afia Shama](https://wordpress.org/support/users/zebaafiashama/)
 * (@zebaafiashama)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/blocks-patterns-cache-update-cron-broken/#post-18277795)
 * Hello [@karl94](https://wordpress.org/support/users/karl94/) 
   Thank you for bringing
   this to our attention. We appreciate your detailed observation regarding the 
   cron job and the `wp_remote_get()` function.
 * We will forward this information to our development team for further investigation.
   Please allow us some time to look into this matter.
 * Best regards,
 *  Plugin Support [Zeba Afia Shama](https://wordpress.org/support/users/zebaafiashama/)
 * (@zebaafiashama)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/blocks-patterns-cache-update-cron-broken/#post-18280532)
 * Hello @karl94 
   I am writing to update you regarding the issue . Our development
   team has been working on fixing the issue, and I am pleased to inform you that
   the problem has been resolved in the dev version of the plugin.It is currently
   in the testing phase. Once that is complete, we will include it in the next release.
   I will be sure to keep you updated.Thank you
 *  [Amit Barai Alit](https://wordpress.org/support/users/amitbarai013/)
 * (@amitbarai013)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/blocks-patterns-cache-update-cron-broken/#post-18337160)
 * Hello [@karl94](https://wordpress.org/support/users/karl94/),
   Hope you are doing
   well.
 * I am pleased to inform you that our Dev team has effectively addressed and resolved
   this issue. The solution has been thoroughly tested and confirmed to be working
   properly on our end. This fix will be incorporated in the upcoming release of
   the **Essential Blocks** plugin. We will notify you once the update is released,
   so there is no need to worry.
 * Thank you for your patience and cooperation.
 *  [Amit Barai Alit](https://wordpress.org/support/users/amitbarai013/)
 * (@amitbarai013)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/blocks-patterns-cache-update-cron-broken/#post-18351544)
 * Hi [karl94](https://wordpress.org/support/users/karl94/),
   I hope you are doing
   well.
 * I am pleased to inform you that the issue you have mentioned has been resolved
   in our latest version of the **Essential Blocks** plugin. Please update the **
   Essential Blocks** plugin to the **latest version 5.3.2** to resolve this issue.
 * Please inform us of the update after checking on your end.
   Thank you.
 *  [Amit Barai Alit](https://wordpress.org/support/users/amitbarai013/)
 * (@amitbarai013)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/blocks-patterns-cache-update-cron-broken/#post-18356439)
 * Hello [karl94](https://wordpress.org/support/users/karl94/),
   Hope you are doing
   well. 
 * We have not heard from you since our last conversation. Could you please let 
   us know if you are still having this issue? So that we could try to solve your
   issue.
 * We are waiting for your response.
 * Thank you.
 *  [Amit Barai Alit](https://wordpress.org/support/users/amitbarai013/)
 * (@amitbarai013)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/blocks-patterns-cache-update-cron-broken/#post-18363851)
 * Hello [karl94](https://wordpress.org/support/users/karl94/),
   Greetings. Hope 
   you are doing well. We haven’t heard from you since then. Can you please inform
   me whether the issue mentioned above is already fixed or not?
 * I eagerly await your response.
 * Thank you.
 *  Thread Starter [Carlo Cannas](https://wordpress.org/support/users/karl94/)
 * (@karl94)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/blocks-patterns-cache-update-cron-broken/#post-18367891)
 * Hi,
   yes, it appears the issue is fixed in 5.3.2.
 * Thanks!
 *  [Amit Barai Alit](https://wordpress.org/support/users/amitbarai013/)
 * (@amitbarai013)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/blocks-patterns-cache-update-cron-broken/#post-18376461)
 * Hello [karl94](https://wordpress.org/support/users/karl94/),
 * Thank you so much for the update. I am so glad to know that your issue is resolved
   now. [😊](https://emojipedia.org/smiling-face-with-smiling-eyes)
   If you’ve been
   happy with our plugin and the support so far, would you mind spending 30 seconds
   to leave us a review using the following link?
 * [https://wordpress.org/support/plugin/essential-blocks/reviews/#new-post](https://wordpress.org/support/plugin/essential-blocks/reviews/#new-post)
 * We are looking forward to your valuable feedback. This will help us to boost 
   our energy and provide better support. And also, help us to grow more. 🙏
 * Please feel free to contact our support anytime you need help, we are always 
   here to assist you. [😊](https://emojipedia.org/smiling-face-with-smiling-eyes)
 * Thank you.

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

The topic ‘Blocks patterns cache update cron broken?’ is closed to new replies.

 * ![](https://ps.w.org/essential-blocks/assets/icon-256x256.gif?rev=2964049)
 * [Gutenberg Essential Blocks – Page Builder for Gutenberg Blocks & Patterns](https://wordpress.org/plugins/essential-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/essential-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/essential-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/essential-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/essential-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/essential-blocks/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Amit Barai Alit](https://wordpress.org/support/users/amitbarai013/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/blocks-patterns-cache-update-cron-broken/#post-18376461)
 * Status: resolved