Title: arithdevlpr's Replies | WordPress.org

---

# arithdevlpr

  [  ](https://wordpress.org/support/users/arithdevlpr/)

 *   [Profile](https://wordpress.org/support/users/arithdevlpr/)
 *   [Topics Started](https://wordpress.org/support/users/arithdevlpr/topics/)
 *   [Replies Created](https://wordpress.org/support/users/arithdevlpr/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/arithdevlpr/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/arithdevlpr/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/arithdevlpr/engagements/)
 *   [Favorites](https://wordpress.org/support/users/arithdevlpr/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/users/arithdevlpr/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/arithdevlpr/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Litespeed crawler cache always miss on some pages](https://wordpress.org/support/topic/litespeed-crawler-cache-always-miss-on-some-pages/)
 *  Thread Starter [arithdevlpr](https://wordpress.org/support/users/arithdevlpr/)
 * (@arithdevlpr)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/litespeed-crawler-cache-always-miss-on-some-pages/#post-18398651)
 * hmm yea i cna see its set to no-cache. Checking the page i haven’t disabled cache
   and i’ve set Force Cahce URI to these urls.
 * I’ve purged cache and re-run the crawler. in the page’s response headers i now
   see the following before:
 *     ```wp-block-code
       alt-svc:h3=":443"; ma=2592000, h3-29=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q043=":443"; ma=2592000, quic=":443"; ma=2592000; v="43,46"cache-control:no-cache, no-store, must-revalidate, max-age=0content-encoding:gzipcontent-type:text/html; charset=UTF-8date:Thu, 03 Apr 2025 23:32:00 GMTexpires:Wed, 11 Jan 1984 05:00:00 GMTlink:<https://rifftsafety.co.nz/wp-json/>; rel="https://api.w.org/"link:<https://rifftsafety.co.nz/wp-json/wp/v2/posts/39016>; rel="alternate"; title="JSON"; type="application/json"link:<https://rifftsafety.co.nz/?p=39016>; rel=shortlinkpragma:no-cacheserver:LiteSpeedvary:Accept-Encodingx-dns-prefetch-control:onx-litespeed-cache-control:no-cachex-litespeed-tag:fc6_tag_priv,public:fc6_HTTP.200
       ```
   
 * after:
 *     ```wp-block-code
       alt-svc:h3=":443"; ma=2592000, h3-29=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q043=":443"; ma=2592000, quic=":443"; ma=2592000; v="43,46"cache-control:no-cache, must-revalidate, max-age=0, no-store, privatecontent-encoding:gzipcontent-length:267824content-type:text/html; charset=UTF-8date:Thu, 03 Apr 2025 23:39:43 GMTexpires:Wed, 11 Jan 1984 05:00:00 GMTlink:<https://rifftsafety.co.nz/wp-json/>; rel="https://api.w.org/"link:<https://rifftsafety.co.nz/wp-json/wp/v2/posts/39016>; rel="alternate"; title="JSON"; type="application/json"link:<https://rifftsafety.co.nz/?p=39016>; rel=shortlinkpragma:no-cacheserver:LiteSpeedvary:Accept-Encodingx-dns-prefetch-control:onx-litespeed-cache:hit,private
       ```
   
 * What is that **pragma: no-cache** value?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Server Cron job for Crawler CLI Issues](https://wordpress.org/support/topic/server-cron-job-for-crawler-cli-issues/)
 *  Thread Starter [arithdevlpr](https://wordpress.org/support/users/arithdevlpr/)
 * (@arithdevlpr)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/server-cron-job-for-crawler-cli-issues/#post-18148038)
 * Alright yes it’s working now. May I make a suggestion on updating the crawler
   documentation? It would be a good idea for posting an article on the subject 
   too as I notice alot of other users are having some issues with the WP CLI.
 * Correct any areas if I’m wrong and happy for you to share this with the team 
   for ideas and feedback. 
   For the Crawler section: ([https://docs.litespeedtech.com/lscache/lscwp/crawler](https://docs.litespeedtech.com/lscache/lscwp/crawler/))
 *     ```wp-block-code
       Crawler:The crawler travels through your site, refreshing pages that have expired in the cache. This makes it less likely that your visitors will encounter uncached pages.The crawler must be enabled at the server-level or the virtual host level by a site admin. Please see: Enabling the Crawler at the Server or Virtual Host LevelLearn more about crawling on our blog.If you are <a href="https://developer.wordpress.org/plugins/cron/hooking-wp-cron-into-the-system-task-scheduler/">hooking WP-Cron into the System Task Scheduler</a>, you must be comfortable using the crawler's <a href="https://docs.litespeedtech.com/lscache/lscwp/cli/">WordPress CLI commands</a> to manually enable, run, reset position and disable the crawlers.Learn more about this on our blog (insert blog post article on the subject)
       ```
   
 * Under General Settings -> Crawler ([https://docs.litespeedtech.com/lscache/lscwp/crawler/#crawler_1](https://docs.litespeedtech.com/lscache/lscwp/crawler/#crawler_1))
 *     ```wp-block-code
       CrawlerOFFSet the to ON to enable crawling for this site.If you are using server cron job, set this to OFF. Otherwise your WP-CLI crawler commands will not run. (Learn more from our article)
       ```
   
 * Under Crawl Interval ([https://docs.litespeedtech.com/lscache/lscwp/crawler/#crawl-interval](https://docs.litespeedtech.com/lscache/lscwp/crawler/#crawl-interval))
 *     ```wp-block-code
       Crawl Interval302400This determines how long in seconds before the crawler starts crawling/re-initiating the crawling process. You might want to change this depending on how long it takes to crawl your site. The best way to figure this out is to run all the crawlers a few times and keep track of the "Last complete run time for all crawlers". Once you've got that amount, set Crawl Interval to slightly more than that. For example if your last complete run time for all crawlers is 4 hours, you could set this value to 5 hours (or 18000 seconds)This setting is also reliant on the Run Duration setting. If your Run Duration is lower than the Crawl Interval, the crawler will not re-initiate until the Crawl Interval has been reached.For example using the default values Run Duration 400, Crawl Interval 302400, and your site has not completed crawling, This means once the crawler starts and 400 seconds is past, it will be another 302000 seconds before the crawler is re-initiatedIf you are using server cron to schedule the crawler, it is recommended to set this value to something lower so the crawler can be re-initiated by the cron accordingly. Learn more from our article (insert article)
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Server Cron job for Crawler CLI Issues](https://wordpress.org/support/topic/server-cron-job-for-crawler-cli-issues/)
 *  Thread Starter [arithdevlpr](https://wordpress.org/support/users/arithdevlpr/)
 * (@arithdevlpr)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/server-cron-job-for-crawler-cli-issues/#post-18147424)
 * So this is my current flow:
    1. This setting inside wp-admin -> LiteSpeed Cache -> crawler -> general setting-
       > crawler **ON**
    2.  In my cron job I have a line to enable the crawlers, then sleep for 61, then
       run wp cli `wp litespeed-crawler run`
 *     ```wp-block-code
       #Enable crawlers at 7:30 PM NZDT (6:30 AM UTC) with logging30 6 * * * wp litespeed-crawler list --path=/var/www/html | grep -oE '^[0-9]+' | xargs -I {} wp litespeed-crawler enable {} --path=/var/www/html && sleep 61 && wp litespeed-crawler run --path=/var/www/html >> /var/www/html/wp-content/lscronlog.txt 2>&1### Disable crawlers at 6:00 AM NZDT (5:00 PM UTC) with logging0 17 * * * wp litespeed-crawler list --path=/var/www/html | grep -oE '^[0-9]+' | xargs -I {} wp litespeed-crawler disable {} --path=/var/www/html >> /var/www/html/wp-content/lscronlog.txt 2>&1
       ```
   
 * Does that mean it won’t work because I actually need this setting inside wp-admin-
   > LiteSpeed Cache -> crawler -> general setting -> crawler **OFF** ?
 * I am testing it now and let you know how it goes.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Server Cron job for Crawler CLI Issues](https://wordpress.org/support/topic/server-cron-job-for-crawler-cli-issues/)
 *  Thread Starter [arithdevlpr](https://wordpress.org/support/users/arithdevlpr/)
 * (@arithdevlpr)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/server-cron-job-for-crawler-cli-issues/#post-18144607)
 * Is there exists better documentation around the CLI crawler commands and the 
   front-end settings?
 * For example if i have Crawler set to ON on the frontend but I am using CLI cron
   to enable, run and disable it, is having it set to ON here still necessary?
 * And what happens if i have this setting ON but am also using the CLI cron job?.
 * My debug log doesn’t show anything but it seems like setting the crawler interval
   to 61 is what is causing the position reset. This is my latest cronjob lines 
   i do not have any reset added but i feel like the frontend settings are causing
   a clash?
 * `#Enable crawlers at 7:30 PM NZDT (6:30 AM UTC) with logging`
 * `30 6 * * * wp litespeed-crawler list --path=/var/www/html | grep -oE '^[0-9]
   +' | xargs -I {} wp litespeed-crawler enable {} --path=/var/www/html && sleep
   60 && wp litespeed-crawler run --path=/var/www/html >> /var/www/html/wp-content/
   lscronlog.txt 2>&1`
 * `# Disable crawlers at 6:00 AM NZDT (5:00 PM UTC) with logging`
 * `0 17 * * * wp litespeed-crawler list --path=/var/www/html | grep -oE '^[0-9]
   +' | xargs -I {} wp litespeed-crawler disable {} --path=/var/www/html >> /var/
   www/html/wp-content/lscronlog.txt 2>&1`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Crawler interval](https://wordpress.org/support/topic/crawler-interval/)
 *  [arithdevlpr](https://wordpress.org/support/users/arithdevlpr/)
 * (@arithdevlpr)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/crawler-interval/#post-18142057)
 * I had a similar issue and the response was that it’s likely a mistranslation.
   Basically it means “how long to wait before the crawler runs again”. So in your
   case if it takes 4 hours then setting it to 5 hours will mean the crawler will
   run every 5 hours. Follow the “Last full run time for all crawlers”
 * [https://wordpress.org/support/topic/server-cron-job-for-crawler-cli-issues/](https://wordpress.org/support/topic/server-cron-job-for-crawler-cli-issues/)
 * `This is what’s confusing me because i thought “Crawl Interval” means “how long
   to wait before the job crawls the **entire sitemap** again”. Not “how long to
   wait before the job runs normally”.?`
    -  This reply was modified 1 year, 6 months ago by [arithdevlpr](https://wordpress.org/support/users/arithdevlpr/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Server Cron job for Crawler CLI Issues](https://wordpress.org/support/topic/server-cron-job-for-crawler-cli-issues/)
 *  Thread Starter [arithdevlpr](https://wordpress.org/support/users/arithdevlpr/)
 * (@arithdevlpr)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/server-cron-job-for-crawler-cli-issues/#post-18135969)
 * Hi, it’s me again. i must be doing something wrong because out of 8 crawlers 
   it seems to never erach the 3rd one but will always reset after the end of the
   1st or 2nd and just loop those two crawlers throughout the entire night. I have
   also tried setting separate turn on/turn off cli server cron jobs to atleast 
   try and get the other crawlers to start but to no avail.
 * any help would begreatly appreciated.
 * latest report number: **MUISQFOB**
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Server Cron job for Crawler CLI Issues](https://wordpress.org/support/topic/server-cron-job-for-crawler-cli-issues/)
 *  Thread Starter [arithdevlpr](https://wordpress.org/support/users/arithdevlpr/)
 * (@arithdevlpr)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/server-cron-job-for-crawler-cli-issues/#post-18127953)
 * So when I increase the crawl interval, it doesn’t seem to work and just does 
   the default `Success: Start crawling. Current crawler #1 [position] 0 [total]
   1884` like earlier.
 * This is what’s confusing me because i thought “Crawl Interval” means “how long
   to wait before the job crawls the **entire sitemap** again”. Not “how long to
   wait before the job runs normally”.?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Server Cron job for Crawler CLI Issues](https://wordpress.org/support/topic/server-cron-job-for-crawler-cli-issues/)
 *  Thread Starter [arithdevlpr](https://wordpress.org/support/users/arithdevlpr/)
 * (@arithdevlpr)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/server-cron-job-for-crawler-cli-issues/#post-18127901)
 * Perfect it’s working now. Also i thought that the crawl interval setting only
   applies for how long you want to wait before a fresh entire sitemap crawl? since
   i’m using the server cron i thought running `wp litespeed-crawler run` was enough.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Troubleshooting AJAX Add to cart/quote features from other plugins](https://wordpress.org/support/topic/troubleshooting-ajax-add-to-cart-quote-features-from-other-plugins/)
 *  Thread Starter [arithdevlpr](https://wordpress.org/support/users/arithdevlpr/)
 * (@arithdevlpr)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/troubleshooting-ajax-add-to-cart-quote-features-from-other-plugins/page/2/#post-18125665)
 * oh i see. okay well for the time being it’s working after i added both lines 
   that accounts for variable and simple products. 🙂
 * thanks again for your quick help looking into this
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Troubleshooting AJAX Add to cart/quote features from other plugins](https://wordpress.org/support/topic/troubleshooting-ajax-add-to-cart-quote-features-from-other-plugins/)
 *  Thread Starter [arithdevlpr](https://wordpress.org/support/users/arithdevlpr/)
 * (@arithdevlpr)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/troubleshooting-ajax-add-to-cart-quote-features-from-other-plugins/page/2/#post-18125660)
 * yes that button is on which has initially fixed the “add to cart” woocommerce
   button. the issue with this “add to quote” button is because its from another
   developer and i guess it doesnt use the same ajax method
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Troubleshooting AJAX Add to cart/quote features from other plugins](https://wordpress.org/support/topic/troubleshooting-ajax-add-to-cart-quote-features-from-other-plugins/)
 *  Thread Starter [arithdevlpr](https://wordpress.org/support/users/arithdevlpr/)
 * (@arithdevlpr)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/troubleshooting-ajax-add-to-cart-quote-features-from-other-plugins/page/2/#post-18121391)
 * Okay I fixed it by adding an OR operator to check the action for single products
   which is just **add_to_quote_single **without the **_vari **at the end. Seems
   to be working good so far.
 *     ```wp-block-code
       /* quote enquiry code*/function lscwp_custom_purge_on_add_cart() {if ($_SERVER['REQUEST_METHOD'] === 'POST' && defined('LSCWP_V')) {if (isset($_POST['action']) && ($_POST['action'] === 'add_to_quote_single_vari' ||$_POST['action'] === 'add_to_quote_single') &&isset($_POST['product_id'])) {do_action( 'litespeed_purge_post', $_POST['product_id'] );}}}add_action('init', 'lscwp_custom_purge_on_add_cart');function buffer_output_before($content) {if (strpos($content, 'Products in your quote enquiry basket') !== false) {@header('X-LiteSpeed-Cache-Control: no-cache');}return $content;}add_filter('litespeed_buffer_before', 'buffer_output_before', 0);/end quote enquiry code/
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Troubleshooting AJAX Add to cart/quote features from other plugins](https://wordpress.org/support/topic/troubleshooting-ajax-add-to-cart-quote-features-from-other-plugins/)
 *  Thread Starter [arithdevlpr](https://wordpress.org/support/users/arithdevlpr/)
 * (@arithdevlpr)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/troubleshooting-ajax-add-to-cart-quote-features-from-other-plugins/page/2/#post-18121372)
 * So I did abit more testing and after a few days of rollout I am still experiencing
   some issues with the add to quote button is not functioning for simple products.
   e.g [https://rifftsafety.co.nz/product/aertec-optomax/](https://rifftsafety.co.nz/product/aertec-optomax/)
 * It seems that after the session ends, when a new session is started the initial
   cached/re-cached page is not triggering the code on button press.
 * To test this:
    1. Initial session: open incognito mode, open a product page, and Add to Quote.
       It will not work. But press “Add to Cart” and it will work and should refresh
       the page and show the cart overlay. From now on if you press “Add to Quote” 
       it will work. Even if you navigate to another product and try to add that product
       to quote.
    2. Close the session and open a new incognito browser. same thing as the initial
       session if you press the add to quote it will not work. But it will start working
       after you press “Add to Cart”.
 * So as long as you don’t close the browser, the Add to Quote button will work.
    -  This reply was modified 1 year, 6 months ago by [arithdevlpr](https://wordpress.org/support/users/arithdevlpr/).
      Reason: added "simple products" type
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Troubleshooting AJAX Add to cart/quote features from other plugins](https://wordpress.org/support/topic/troubleshooting-ajax-add-to-cart-quote-features-from-other-plugins/)
 *  Thread Starter [arithdevlpr](https://wordpress.org/support/users/arithdevlpr/)
 * (@arithdevlpr)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/troubleshooting-ajax-add-to-cart-quote-features-from-other-plugins/#post-18113419)
 * I see, so the ideal situation is to request the developer to use an ajax call
   for the button instead of javascript trigger?
 * I wonder if there is another workaround to trigger the crawler to run for that
   specific page immediately after the cache was purged.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Troubleshooting AJAX Add to cart/quote features from other plugins](https://wordpress.org/support/topic/troubleshooting-ajax-add-to-cart-quote-features-from-other-plugins/)
 *  Thread Starter [arithdevlpr](https://wordpress.org/support/users/arithdevlpr/)
 * (@arithdevlpr)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/troubleshooting-ajax-add-to-cart-quote-features-from-other-plugins/#post-18113398)
 * I’m sorry, I am brand new learning about these caching concepts.
 * So I have Quic cloud setup and the litespeed crawler running on a cron job once
   every night.
 * From my understanding, when the page’s cache is purged, it may take a while for
   it to be re-cached and for the server to serve a cached page to a new visitor
   right? so meaning in this case i must wait until the crawler does its thing to
   re-cache the page?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Troubleshooting AJAX Add to cart/quote features from other plugins](https://wordpress.org/support/topic/troubleshooting-ajax-add-to-cart-quote-features-from-other-plugins/)
 *  Thread Starter [arithdevlpr](https://wordpress.org/support/users/arithdevlpr/)
 * (@arithdevlpr)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/troubleshooting-ajax-add-to-cart-quote-features-from-other-plugins/#post-18113384)
 * sorry, just a followup question, since your workaround is purging the page’s 
   cache whenever the add to quote button is pressed, does that mean it will need
   to be recrawled everytime?

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/users/arithdevlpr/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/arithdevlpr/replies/page/2/?output_format=md)