• Resolved vdberto

    (@vdberto)


    Hi,

    I’m using LSCache for a few days and it’s impressive!
    But I’m facing a big problem for me.

    I have a news website, so we post (and schedule) a lot everyday, and I saw that when we schedule a post, when it goes alive, if you try to reach it through a direct link, it’s ok, but all other pages is not being purged, so it’s not in homepage, not in category page…

    How can I solve it? I need that every page has to be purged everytime that a post goes alive, even it comes through a scheduled one.

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Hai Zheng?

    (@hailite)

    You can turn on debug log and see when you add a new post, which tags are purged.

    If you have Home page ticked in Auto Purge Rules For Publish/Update, home page should be purged automatically.

    Thread Starter vdberto

    (@vdberto)

    Hi!
    I do have Home Page ticked in Auto Purge Rules For Publish/Update and it works when I add a post to be published immediately, but not when it’s a scheduled post.

    Thread Starter vdberto

    (@vdberto)

    I just logged a debug of a scheduled post that went live 2 minutes ago and nothing about purge was logged, beside a manual purge that a I did minutes before.

    Plugin Support Hai Zheng?

    (@hailite)

    If you visit https://f1mania.lance.com.br/wp-cron.php it will trigger your cron task. Can you try it and see if the post comes correctly?

    Thread Starter vdberto

    (@vdberto)

    I have wp-cron running in my UNIX frequently given our quantity of news.
    The post comes correctly as it’s frequently running by cronjobs, it’s not the problem… the problem is that is not shown in home page, category page, because those page’s cache is not being purged.

    Plugin Support Hai Zheng?

    (@hailite)

    We just tried on our test environment. Pages is purged correctly by call wp-cron.php:

    
    10/15/17 12:40:31.764 [192.168.0.197:62743 1 GHN] GET HTTP/1.1 /wp-cron.php
    10/15/17 12:40:31.764 [192.168.0.197:62743 1 GHN] Query String: 
    10/15/17 12:40:31.764 [192.168.0.197:62743 1 GHN] Cookie _lscache_vary: admin_bar:1;logged-in:1;role:99
    10/15/17 12:40:31.856 [192.168.0.197:62743 1 GHN] X Cache_control -> private ( logged in user )
    10/15/17 12:40:31.857 [192.168.0.197:62743 1 GHN] GUI init
    10/15/17 12:40:44.606 [192.168.0.197:62743 1 GHN] --------purge_tags prev is: 141
    10/15/17 12:40:44.616 [192.168.0.197:62743 1 GHN] X-LiteSpeed-Purge: public,0051_Po.149,0051_URL.d62a193226406583dd5a899de293105e,0051_W.recent-posts-2,0051_Po.141,0051_T.2,0051_A.1,0051_PT.post,0051_F,0051_H,0051_PGS,0051_PGSRP,0051_D.201710
    10/15/17 12:40:44.617 [192.168.0.197:62743 1 GHN] X-LiteSpeed-Purge: public,0051_Po.149,0051_URL.d62a193226406583dd5a899de293105e,0051_W.recent-posts-2,0051_Po.141,0051_T.2,0051_A.1,0051_PT.post,0051_F,0051_H,0051_PGS,0051_PGSRP,0051_D.201710,0051_REST
    10/15/17 12:40:44.617 [192.168.0.197:62743 1 GHN] X Cache_control -> stale
    10/15/17 12:40:44.620 [192.168.0.197:62743 1 GHN] --------purge_tags prev is: 141
    10/15/17 12:40:44.630 [192.168.0.197:62743 1 GHN] not cacheable before ctrl finalize
    10/15/17 12:40:44.634 [192.168.0.197:62743 1 GHN] X-LiteSpeed-Cache-Control: no-cache
    10/15/17 12:40:44.634 [192.168.0.197:62743 1 GHN] X-LiteSpeed-Purge: public,stale,0051_Po.149,0051_URL.d62a193226406583dd5a899de293105e,0051_W.recent-posts-2,0051_Po.141,0051_T.2,0051_A.1,0051_PT.post,0051_F,0051_H,0051_PGS,0051_PGSRP,0051_D.201710,0051_REST
    10/15/17 12:40:44.634 [192.168.0.197:62743 1 GHN] Optimizer bypass: Not frontend HTML type
    10/15/17 12:40:44.634 [192.168.0.197:62743 1 GHN] End response
    --------------------------------------------------------------------------------
    

    If it continually missed from purge, you may need to create a tix. Our support team can help to figure out why.

    Thread Starter vdberto

    (@vdberto)

    Did you scheduled a post, then at the correct time it was published and shown in home page? Because here it’s published, accessible by direct link, but not shown anywhere. As I told it’s like it’s not being purged.

    When I post “immediately” everything is ok, post is published, home is purged, the problem just appears when is a scheduled post.

    I did create a ticket, but it’s told me that a copy would be sent to my e-mail, but it never came. I’m really worried about it.

    Thread Starter vdberto

    (@vdberto)

    I have WP Control plugin installed, which shows what actions is scheduled in my WP-Cron and there’s nothing about purge when I schedule a post. Should LiteSpeed Cache creates an action in WP-Cron when I schedule a post? If yes, this could be the issue.

    Plugin Support Hai Zheng?

    (@hailite)

    No, lscwp will automatically purge without extra cron task when posted, no matter its from immediate or scheduled.

    Plugin Support Cold Egg

    (@eric780217)

    Vberto fixed issue by removing “define(‘DISABLE_WP_CRON’, true);” from “wp-config.php”

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Not purged by scheduled posts’ is closed to new replies.