Wordpress LScache Plugin: LiteSpeed Cashe vs. Advanced Dynamic Pricing
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi! Concerns with Advanced Dynamic Pricing plugin. Ive 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: http://www.lambero.ee 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, Hi! We have already tried several variants and codes with them. Ill send it to them and see what they answer. Regards, 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 doesnt purge with this code , it should trigger the LSCWP trigger whenever it changes anything Best regards, Hi! The author of the plugin does not want to make any changes. If your plugin doesnt solve this problem either, Im probably looking for a new dynamic price plugin. Are there any suggestions that also support your plugin? Regards, Hi, sadly no , I dont 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 doesnt show up until you purge cache , is that the issue you encounter ? Best regards, 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 cant find anything there that would automatically change that price. Regards, Hi, oh yes , I see the thing is , whenever it changes price, it needs to notify cache to purge , otherwise price wont be updated as page is cached. I dont really have good solution here without plugin authors help , since its 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, Hi! They now asked to send this code Could you tell me the code. Thank you! 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, 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! Hi, sure , please keep me posted Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference