Timeout issue for generating UCSS ?




Wordpress LScache Plugin: Timeout issue for generating UCSS ?


Hi, Ive got some problems for generating ALL CCSS and above all, UCSS with quic.cloud. When crawler works and add files to be generated, request towards quic.cloud works well for a number of files, but not all (2/3 at least are not retrieved). Issue is more noticeable for UCSS. When I watch history in quic.cloud dashboard, I see that it takes 32 or 40 seconds (CPU column). I think all files are well generated, but my webserver doesnt wait enough for retrieving each files. Thinking that (perhaps, Im wrong), I found a snippet to put in functions.php, in order to increase CURL timeout to 60s: add_filter(http_request_args, bal_http_request_args, 100, 1) function bal_http_request_args($r) //called on line 237 $r[timeout] = 60 return $r add_action(http_api_curl, bal_http_api_curl, 100, 1) function bal_http_api_curl($handle) //called on line 1315 curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, 60 ) curl_setopt( $handle, CURLOPT_TIMEOUT, 60 ) // Setting custom timeout for the HTTP request add_filter(http_request_timeout, my_custom_http_request_timeout, 101 ) function my_custom_http_request_timeout( $timeLimit ) return 30 Expand Unfortunatly, it does not change really the things. Perhaps, a little more files are retrieved, but not all. Although they are generated by quic.cloud. And, this snippet causes an issue in backend, which is now, not very reactive: after one click on a link within the backend (or button), action seems not be executed, and I need to interrupt the loading and restart it (3, 4, 5, 6 times?). So, its not a good solution? If someone has the ability to explain me what is the issue, it would be wonderful ! Now, with this operating state, I need to force a regeneration and above all, to retrieve again some files. So, which process should be best ? Because ucss file does not appear in database table litespeed_url_file, and revisit page does not trigger a new ucss generation with quic.cloud Thanks a lot if you can help me with theses issues. Best regards Hello if you have an issue when generating the UCSS Maybe you could try the following link. https://docs.litespeedtech.com/lscache/lscwp/ts-optimize/#incomplete-ucss Hi, In fact, its not an issue concerning incomplete ucss, but an issue with the time which is necessary to wait for generating it. And my servers hoster does not wait enough? So ucss is probably well generating but not every time retrieved. By the way, thanks for this documentation that I already used sometimes: a very well done documentation. Merry Christmas to all. Best regards
Do you need help?
We are online almost any time and ready to answer any question. The answer to your question will come faster than it takes you to release the mouse button.

Ask A Question