• Resolved Jakub Knytl

    (@ltynk)


    Hi,
    I found out that cached pages only last for few minutes instead of up to 23 hours. In debug.purge.log I found this kind of action:

    01/29/20 14:08:58.512 [172.68.214.130:24142 1 a08] ?? ------POST HTTP/1.1 (HTTPS)  /wp-admin/post.php
    01/29/20 14:08:58.512 [172.68.214.130:24142 1 a08] Query String: 
    01/29/20 14:08:58.512 [172.68.214.130:24142 1 a08] HTTP_REFERER: https://xxxxx.com/wp-admin/post.php?post=154271&action=edit
    ...
    01/29/20 14:08:58.513 [172.68.214.130:24142 1 a08] X-LiteSpeed-Purge: public,stale,c4a_Po.154271,c4a_URL.6666cd76f96956469e7be39d750cc7d9,c4a_W.recent-posts-2,c4a_Po.150452,c4a_FD,c4a_REST => LSC->send_headers()@680 => WP_Hook->apply_filters()@288 => WP_Hook->do_action()@312 => 
    /var/www/xxxxx.com/wp-includes/load.php@478
    

    Post IDs are always drafts. I even disabled all purging on publish/update but still all cache is purged via these. Any solution to this? This behaviour makes LS Cache almost useless because it’s high traffic site and multiple users edit drafts all the time. And when every 2-5 minutes all cached pages are purged it’s problem.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Jakub Knytl

    (@ltynk)

    Just found that commenting ‘edit_post’/’save_post’ in the /inc/purge.class.php does the trick. Definitely bug!

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Yes, I have managed to reproduce this , will report back to developer for further analyzes

    Best regards,

    I am facing a similar problem.
    I’m running a shop with WooCommerce, which uses posts to represent orders. As they are orders, they often change status, items added or removed. All these events trigger edit_post and save_post, so the cache is constantly being purged.

    Not entirely sure if this is a bug or simply a bad assumption. What I would suggest is expose those events in the settings panel, so that we can choose which one we want. Alternatively, add a filter in there, so that plugins or custom code can hook in to determine if purge is required.

    Thread Starter Jakub Knytl

    (@ltynk)

    As I saw on the Slack it’s problem only on the OLS due some recent-post tag. Hope that in update it will be fixed.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Will add bypass on OLS recent post tag if detected.

    Best regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cache is purged on draft edit’ is closed to new replies.