• Resolved ahojdane

    (@ahojdane)


    Hello,

    LiteSpeed Cache Settings – Purge – Auto Purge Rules For Publish/Update.

    Even if all the options are unchecked, on any update of any page a purge of everything is executed. Any ideas how to fix this?

    I’m using latest version of WP 6.5.3. and LiteSpeed Cache plugin for WP 6.2.0.1.?Also latest version of Polylang Pro 3.6.1.

    LiteSpeed Report
    Report number:?OVIFTVCS

    Before logging I unchecked all the checkboxes at
    LiteSpeed Cache Settings – Purge – Auto Purge Rules For Publish/Update
    Debug log: https://pastebin.com/zCdSDSsE
    Purge log: https://pastebin.com/8x2wbT1x

    The Polylang team investigated this issue and the answer from them is:

    I’ve shared the debug.log with my developers colleagues and they confirmed something seems to be wrong after Polylang Pro asked for flushing the cache of only 1 post.
    We can read in the debug.log

    /home5/adviocz/jidlonacestach.cz/wp-content/plugins/polylang-pro/modules/sync-post/sync-post-model.php@3329
    05/06/24 17:44:48.925 [217.30.64.206:61251 1 ZLC]  X-LiteSpeed-Purge: public,d64_
    05/06/24 17:44:48.925 [217.30.64.206:61251 1 ZLC]  Failed to flush object cache due to object cache not enabled
    05/06/24 17:44:48.925 [217.30.64.206:61251 1 ZLC]  Failed to reset opcode cache due to opcache not enabled
    05/06/24 17:44:48.925 [217.30.64.206:61251 1 ZLC]  Purge all => LiteSpeed\Root::debug( Purge all ,3)@51 => LiteSpeed\Purge->_purge_all()@212 => LiteSpeed\Purge::purge_all(954)@178 => WP_Hook->apply_filters(,ARRAY)@326

    After Polylang is asking for flushing the synchronized post cache (only one post ID), we can see Lite Speed cache is flushing it entirely:

    LiteSpeed\Root::debug( Purge all ,3)@51 => LiteSpeed\Purge->_purge_all()@212 => LiteSpeed\Purge::purge_all(954)@178 => WP_Hook->apply_filters(,ARRAY)@326

    Would you please contact them to know on which hook they attach this purge_all() function ?

    Any idea how to fix this issue?

    This is not a new problem, but I’m trying to solve it now, because I have feedback from Polylang team.

    Thank you!

Viewing 6 replies - 16 through 21 (of 21 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi, @ahojdane

    I am working with @sebastienserre , trying to reproduce the issue for investigation

    from the log you posted , it seems you were doing the post sync , but I did same thing as Sebastien instructed but can not get same result as you did

    on your log, it shows LiteSpeed\Purge::purge_all(954) , which is purge_all() , however on my attempts , I only get LiteSpeed\Purge->purge_post(60) , which is a purge_post() call

    so I wonder what or how exactly did you do , to get that purge_all happen ?

    Thread Starter ahojdane

    (@ahojdane)

    For example try edit some tag. Then I get this from the log:
    https://pastebin.com/W4tCPraf
    (this is from the new install of the WP, Litespeed Cache & Polylang free).

    I generated right now a new report with a paswordless link:
    Report number:?HHCXCZHD

    Thank you! ??

    Plugin Support qtwrk

    (@qtwrk)

    okay , if it’s about tag , then you may need to go to LiteSpeed Cache -> Cache -> Purge -> Purge All Hooks , remove

    create_term
    edit_terms
    delete_term
    Thread Starter ahojdane

    (@ahojdane)

    OK.

    I will try to reproduce the error by editing post/page in the testing enviroment tomorrow.

    This is a fresh log from my production server (with your code turned off). If I edit any post/page, purge_all is executed (if I read the blog clear):

    https://pastebin.com/4Kk5aEqc

    Hope it helps.

    Plugin Support qtwrk

    (@qtwrk)

    hmmm, interesting , I don’t understand why I don’t get this happen

    please create a ticket by mail to support at litespeedtech.com with reference link to this topic , we will investigate further.

    ——-

    from log

    /home5/adviocz/jidlonacestach.cz/wp-includes/taxonomy.php@517 =>

    I don’t think you have done something that modify the taxmony , or tag , that will lead to purge all , try remove these 3 hooks as my previous reply , see what happens

    • This reply was modified 6 months ago by qtwrk.
    Thread Starter ahojdane

    (@ahojdane)

    Thank you very much. You are right. I removed edit_terms hook and this solved my problem.

    I don’t think you have done something that modify the taxmony , or tag , that will lead to purge all , try remove these 3 hooks as my previous reply , see what happens

    Yes, you are right, I was doing nothing with the terms (I was just editing the main content of the page/post – adding just one letter was enought to start purge_all after saving – before i removed edit_terms hook).

    please create a ticket by mail with reference link to this topic , we will investigate further.

    I just sent a mail, hope it will arrive, I also added WP health, link to the log file and my actual settings.

    Thank you very much @qtwrk and of course also @sebastienserre ! ??

    • This reply was modified 6 months ago by ahojdane.
Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Auto Purge Rules For Publish – purge always executed (2)’ is closed to new replies.