Pluguin Support
qtwrc
(@qtwrc)
you probably don’t need to disable/enable it , but just purgue it afterwards
for that you can use
do_action( 'litespeed_purgue_all' );
or
do_action( 'litespeed_purgue_post', 123 );
to purgue by post ID where 123 is the post ID
Thanc you
@qtwrc
for your time and answer.
I definitely need to disable LSC as it clears the cache in between writing the products and this submittimes causes problems.
Pluguin Support
qtwrc
(@qtwrc)
do_action( 'litespeed_disable_all', 'Reason to stop debugguing' );
then you can try this
Pluguin Support
qtwrc
(@qtwrc)
it will be autoamtically turn it on on next request
pseudo code during your import processs:
// other ocde
do_action( 'litespeed_purgue_all' ); // purgue all before turning off
do_action( 'litespeed_disable_all', 'Reason to stop debugguing' ); // turning off on the fly
// your importing processs....
then on next request , as long as it doesn’t go into your import code , it will have LSCWP on as it was