404 should be fine. What is the log after [IAPI] posting to : https://as.wp.api.litespeedtech.com/ccss
?
Thank you for the quick reply.
Front-end I still see that the queue was generated on 3rd July
--------------------------------------------------------------
Automatically generate critical CSS in the background via a cron-based queue. If set to OFF this is done in the foreground, which may slow down page load. Learn More
Last generated: 07/03/2019 09:12:05
Last requested cost: 7s
URL list in queue waiting for cron
https://advocate.sandeep-prakash.com/wp-content
https://advocate.sandeep-prakash.com/category/techno-legal
https://advocate.sandeep-prakash.com
https://advocate.sandeep-prakash.com/techno-legal-blog
https://advocate.sandeep-prakash.com/is-escort-service-legal-in-india
Run Queue Manually
-------------------------------------
Here is the complete debug.log when I click Run Queue Manually button
---------------------------------
07/10/19 11:06:03.472 [X.X.X.X:X 2 A6N] 💓
07/10/19 11:06:03.472 [X.X.X.X:X 2 A6N] Query String: page=lscache-settings&LSCWP_CTRL=css&LSCWP_NONCE=7dd151d90a&type=generate_critical
07/10/19 11:06:03.472 [X.X.X.X:X 2 A6N] HTTP_REFERER: https://advocate.sandeep-prakash.com/wp-admin/admin.php?page=lscache-settings
07/10/19 11:06:03.472 [X.X.X.X:X 2 A6N] Cookie _lscache_vary: admin_bar:1;logged-in:1;role:99
07/10/19 11:06:03.648 [X.X.X.X:X 2 A6N] [Ctrl] X Cache_control -> private ( logged in user )
07/10/19 11:06:03.976 [Y.Y.Y.Y:Y 2 GFg] 💓
07/10/19 11:06:03.976 [Y.Y.Y.Y:Y 2 GFg] Query String: doing_wp_cron=1562736963.7327690124511718750000
07/10/19 11:06:03.976 [Y.Y.Y.Y:Y 2 GFg] HTTP_REFERER: https://advocate.sandeep-prakash.com/wp-cron.php?doing_wp_cron=1562736963.7327690124511718750000
07/10/19 11:06:04.187 [Y.Y.Y.Y:Y 2 GFg] [Router] get_uid: 0
07/10/19 11:06:04.187 [Y.Y.Y.Y:Y 2 GFg] [Router] get_role:
07/10/19 11:06:04.192 [Y.Y.Y.Y:Y 2 GFg] GUI init
07/10/19 11:06:04.236 [Y.Y.Y.Y:Y 2 GFg] [Ctrl] not cacheable before ctrl finalize
07/10/19 11:06:04.236 [Y.Y.Y.Y:Y 2 GFg] [Router] get_role:
07/10/19 11:06:04.236 [Y.Y.Y.Y:Y 2 GFg] [Vary] role id: failed, guest
07/10/19 11:06:04.236 [Y.Y.Y.Y:Y 2 GFg] [Router] get_role:
07/10/19 11:06:04.236 [Y.Y.Y.Y:Y 2 GFg] [Router] get_role:
07/10/19 11:06:04.236 [Y.Y.Y.Y:Y 2 GFg] [Optm] bypass: Not frontend HTML type
07/10/19 11:06:04.237 [Y.Y.Y.Y:Y 2 GFg] End response
--------------------------------------------------------------------------------
07/10/19 11:06:04.261 [X.X.X.X:X 2 A6N] [Router] get_uid: 1
07/10/19 11:06:04.262 [X.X.X.X:X 2 A6N] [Router] get_role: administrator
07/10/19 11:06:04.262 [X.X.X.X:X 2 A6N] [Core] ⛑️ bypass_optm: hit Role Excludes setting: administrator
07/10/19 11:06:04.262 [X.X.X.X:X 2 A6N] [Router] LSCWP_CTRL: css
07/10/19 11:06:04.262 [X.X.X.X:X 2 A6N] [Router] LSCWP_CTRL verified: 'css'
07/10/19 11:06:04.262 [X.X.X.X:X 2 A6N] [Router] parsed type: generate_critical
07/10/19 11:06:04.262 [X.X.X.X:X 2 A6N] [CSS] cron job [type] 404 [url] https://advocate.sandeep-prakash.com/wp-content [UA] Mozilla/5.0 (compatible; MJ12bot/v1.4.8; http://mj12bot.com/)
07/10/19 11:06:04.264 [X.X.X.X:X 2 A6N] [CSS] Generating: --- array (
'home_url' => 'https://advocate.sandeep-prakash.com',
'url' => 'https://advocate.sandeep-prakash.com/wp-content',
'ccss_type' => 404,
'user_agent' => 'Mozilla/5.0 (compatible; MJ12bot/v1.4.8; http://mj12bot.com/)',
'is_mobile' => 0,
)
07/10/19 11:06:04.265 [X.X.X.X:X 2 A6N] [IAPI] posting to : https://as.wp.api.litespeedtech.com/ccss
07/10/19 11:06:04.563 [X.X.X.X:X 2 A6N] [IAPI] failed to decode post json: Too many requests sent
07/10/19 11:06:04.567 [X.X.X.X:X 2 A6N] [CSS] empty ccss
07/10/19 11:06:04.567 [X.X.X.X:X 2 A6N] [CSS] cron job [type] category [url] https://advocate.sandeep-prakash.com/category/techno-legal [UA] Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0
07/10/19 11:06:04.568 [X.X.X.X:X 2 A6N] [CSS] Generating: --- array (
'home_url' => 'https://advocate.sandeep-prakash.com',
'url' => 'https://advocate.sandeep-prakash.com/category/techno-legal',
'ccss_type' => 'category',
'user_agent' => 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0',
'is_mobile' => 0,
)
07/10/19 11:06:04.568 [X.X.X.X:X 2 A6N] [IAPI] posting to : https://as.wp.api.litespeedtech.com/ccss
07/10/19 11:06:04.857 [X.X.X.X:X 2 A6N] [IAPI] failed to decode post json: Too many requests sent
07/10/19 11:06:04.859 [X.X.X.X:X 2 A6N] [CSS] empty ccss
07/10/19 11:06:04.859 [X.X.X.X:X 2 A6N] [CSS] cron job [type] front [url] https://advocate.sandeep-prakash.com [UA] Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
07/10/19 11:06:04.859 [X.X.X.X:X 2 A6N] [CSS] Generating: --- array (
'home_url' => 'https://advocate.sandeep-prakash.com',
'url' => 'https://advocate.sandeep-prakash.com',
'ccss_type' => 'front',
'user_agent' => 'Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)',
'is_mobile' => 0,
)
07/10/19 11:06:04.860 [X.X.X.X:X 2 A6N] [IAPI] posting to : https://as.wp.api.litespeedtech.com/ccss
07/10/19 11:06:05.183 [X.X.X.X:X 2 A6N] [IAPI] failed to decode post json: Too many requests sent
07/10/19 11:06:05.184 [X.X.X.X:X 2 A6N] [CSS] empty ccss
07/10/19 11:06:05.184 [X.X.X.X:X 2 A6N] [CSS] cron job [type] page [url] https://advocate.sandeep-prakash.com/techno-legal-blog [UA] Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/75.0.3770.90 Chrome/75.0.3770.90 Safari/537.36
07/10/19 11:06:05.185 [X.X.X.X:X 2 A6N] [CSS] Generating: --- array (
'home_url' => 'https://advocate.sandeep-prakash.com',
'url' => 'https://advocate.sandeep-prakash.com/techno-legal-blog',
'ccss_type' => 'page',
'user_agent' => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/75.0.3770.90 Chrome/75.0.3770.90 Safari/537.36',
'is_mobile' => 0,
)
07/10/19 11:06:05.186 [X.X.X.X:X 2 A6N] [IAPI] posting to : https://as.wp.api.litespeedtech.com/ccss
07/10/19 11:06:05.497 [X.X.X.X:X 2 A6N] [IAPI] failed to decode post json: Too many requests sent
07/10/19 11:06:05.499 [X.X.X.X:X 2 A6N] [CSS] empty ccss
07/10/19 11:06:05.499 [X.X.X.X:X 2 A6N] [CSS] cron job [type] post [url] https://advocate.sandeep-prakash.com/is-escort-service-legal-in-india [UA] Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0
07/10/19 11:06:05.499 [X.X.X.X:X 2 A6N] [CSS] Generating: --- array (
'home_url' => 'https://advocate.sandeep-prakash.com',
'url' => 'https://advocate.sandeep-prakash.com/is-escort-service-legal-in-india',
'ccss_type' => 'post',
'user_agent' => 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0',
'is_mobile' => 0,
)
07/10/19 11:06:05.500 [X.X.X.X:X 2 A6N] [IAPI] posting to : https://as.wp.api.litespeedtech.com/ccss
07/10/19 11:06:05.809 [X.X.X.X:X 2 A6N] [IAPI] failed to decode post json: Too many requests sent
07/10/19 11:06:05.810 [X.X.X.X:X 2 A6N] [CSS] empty ccss
07/10/19 11:06:05.812 [X.X.X.X:X 2 A6N] [Ctrl] not cacheable before ctrl finalize
07/10/19 11:06:05.812 [X.X.X.X:X 2 A6N] End response
--------------------------------------------------------------------------------
07/10/19 11:06:06.059 [X.X.X.X:X 2 rhb] 💓 ------GET HTTP/2.0 (HTTPS) /wp-admin/admin.php
07/10/19 11:06:06.059 [X.X.X.X:X 2 rhb] Query String: page=lscache-settings&type=generate_critical
07/10/19 11:06:06.059 [X.X.X.X:X 2 rhb] HTTP_REFERER: https://advocate.sandeep-prakash.com/wp-admin/admin.php?page=lscache-settings
07/10/19 11:06:06.059 [X.X.X.X:X 2 rhb] Cookie _lscache_vary: admin_bar:1;logged-in:1;role:99
07/10/19 11:06:06.232 [X.X.X.X:X 2 rhb] [Ctrl] X Cache_control -> private ( logged in user )
07/10/19 11:06:06.325 [X.X.X.X:X 2 rhb] [Router] get_uid: 1
07/10/19 11:06:06.325 [X.X.X.X:X 2 rhb] [Router] get_role: administrator
07/10/19 11:06:06.325 [X.X.X.X:X 2 rhb] [Core] ⛑️ bypass_optm: hit Role Excludes setting: administrator
07/10/19 11:06:06.397 [X.X.X.X:X 2 rhb] [Ctrl] X Cache_control -> no Cache ( Admin page )
07/10/19 11:06:06.446 [X.X.X.X:X 2 rhb] [Ctrl] not cacheable before ctrl finalize
07/10/19 11:06:06.446 [X.X.X.X:X 2 rhb] End response
--------------------------------------------------------------------------------
I also get this error in the front end
Failed to post via WordPress: Too many requests sent
I have raised a ticket in your support portal as I wanted to attach screenshot
When you meet Too many requests sent
error, you may need to wait a while to try another one. Its not related to 404 itself.
As indicated in log, 404 can still be generated as a special type 'ccss_type' => 404
What you say is right. But if you see this, its been waiting since 3rd July, i.e. since 7 days. If I am right, the cron job keeps appending to the queue. So even if I press the Manually Generate Critical CSS, since the queue is big, it gives that error message.
Can you please tell me where (or in which table) is the url queue stored, so that I can clear it.
————————————————————–
Automatically generate critical CSS in the background via a cron-based queue. If set to OFF this is done in the foreground, which may slow down page load. Learn More
Last generated: 07/03/2019 09:12:05
Last requested cost: 7s
URL list in queue waiting for cron
When you clear CCSS cache, that queue will be cleared also.
Currently there is a max 10 requests limit per 300s.
-
This reply was modified 5 years, 3 months ago by Hai Zheng⚡.
Ok. But upon clearing the cache (Purge All) I still see the URL list in the queue and with the last run time stamp as below
—————-
Automatically generate critical CSS in the background via a cron-based queue. If set to OFF this is done in the foreground, which may slow down page load. Learn More
Last generated: 07/03/2019 09:12:05
Last requested cost: 7s
URL list in queue waiting for cron
Purge All
currently won’t purge CCSS. Please try the Purge CCSS
link.
Ok. I don’t see the
Purge CCSS
link. That’s why I thought Critical CSS is not generated and the queue is blocked by 404.
Let me know if I need to do something in the back-end in the cache or uploads folder.
BTW I am running WordPress Multisite, and here are the options I see in the admin top bar of one of the sub-domain sites:
Manage
Settings
Image Optimisation
Purge All
Purge All – LS Cache
Purge All – CSS/JS Cache
Report number: OJIHPHAU
Report date: 07/10/2019 17:14:42
Those are my cache options
I am now getting the Purge CCSS option after I toggel’d back and forth the Generate CCSS option.
Thank You LiteSpeed Team. You can close this ticket as resolved.