• Resolved ivanjst2

    (@ivanjst2)


    If I update the post then I need to click “Flush Object Cache” to clear all caches and wait to regenerate them. There are more than 170000 files to regenerate…
    Is it possible to clear only the cache of the page that was updated?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Nawawi Jamili

    (@nawawijamili)

    Hi,

    When updating the post, create or delete, the cache is automatically updated. No need to “Flush Object Cache” unless if you want to start from fresh or something is not working as it should.

    Thanks.

    Thread Starter ivanjst2

    (@ivanjst2)

    Understand. But I used an external script to update the posts directly in the database, without going through the wordpress function. Is it only possible to update the cache base automatically if the posts are updated through the native wordpress function?

    Plugin Author Nawawi Jamili

    (@nawawijamili)

    Hi,

    Since you update the post directly without using the WordPress function, docket cache can’t handle it. You need to run wp_cache_flush() function to flush the cache entirely.

    Currently, Yes, it is only possible to update the cache base automatically if the posts are updated through the native WordPress function.

    Thanks.

    Thread Starter ivanjst2

    (@ivanjst2)

    Hi, thanks for the reply. Resolved. “wp_update_post($my_post)”;

    Plugin Author Nawawi Jamili

    (@nawawijamili)

    Hi, glad to hear that.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Delete cache after update post’ is closed to new replies.