Support » Plugin: LiteSpeed Cache » LiteSpeed Cashe vs. Advanced Dynamic Pricing

  • Resolved heino5

    (@heino5)


    Hi!

    Concerns with Advanced Dynamic Pricing plugin. I’ve been in contact with the plugin owner for a long time here and have solved some problems. However, unfortunately, the problem where prices should change automatically cannot be solved. Does your plugin have any way to turn off dynamic pricing?

    Regards,

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please kindly ask plugin author to add a purge call by

    
    do_action( 'litespeed_purge_post', $post_id );
    

    whenever it changes price.

    Best regards,

    Thread Starter heino5

    (@heino5)

    Hi!

    We have already tried several variants and codes with them. I’ll send it to them and see what they answer.

    Regards,

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    well , from my experience , most of these plugins that changes something without using standard WP API , and that causes WP hook not being fired and leads to LSCWP un-aware of any changes , so it doesn’t purge

    with this code , it should trigger the LSCWP trigger whenever it changes anything

    Best regards,

    Thread Starter heino5

    (@heino5)

    Hi!

    The author of the plugin does not want to make any changes. If your plugin doesn’t solve this problem either, I’m probably looking for a new dynamic price plugin.

    Are there any suggestions that also support your plugin?

    Regards,

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    sadly no , I don’t know any of such kind of plugin

    I have been played a bit with this plugin

    so far I see the issue is that , when you edit the price rule , it doesn’t show up until you purge cache , is that the issue you encounter ?

    Best regards,

    Thread Starter heino5

    (@heino5)

    Hi!

    At the moment, we got it so that if I make manual discounts, it changes. However, if automatically (for example, tomorrow at 2.00 PM), it will not change all prices.

    Their team suggested that I look for something here: https://docs.litespeedtech.com/lscache/basics/

    but yes, unfortunately I can’t find anything there that would automatically change that price.

    Regards,

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    oh yes , I see

    the thing is , whenever it changes price, it needs to notify cache to purge , otherwise price won’t be updated as page is cached.

    I don’t really have good solution here without plugin author’s help , since it’s just like 3 lines of code needs to be added into it

    for your case like price change at certain date, I can only suggest you can set up a cron job for purge all , once you set the price on certain date 🙁

    Best regards,

    Thread Starter heino5

    (@heino5)

    Hi!

    They now asked to send this code 🙂
    Could you tell me the code.

    Thank you!

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    
    if (defined('LSCWP_V')) {
    do_action( 'litespeed_purge_post', $post_id );
    }
    

    please kindly ask them to add above code into their “save/edit” action , like whenever they change a product price

    this will check if LSCWP is enabled , and if so , notify LSCWP to do a purge on post $post_id (where is the product id) to purge cache for that product

    more info : https://docs.litespeedtech.com/lscache/lscwp/api/

    Best regards,

    Thread Starter heino5

    (@heino5)

    Hi!

    It looks like the added code on the dev page started working. If the opportunity arises, I will also experiment on the main page.

    Thank You!

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    sure , please keep me posted

    Best regards,

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘LiteSpeed Cashe vs. Advanced Dynamic Pricing’ is closed to new replies.