المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ووردبريس WordPress بلوجن wp-rocket حل مشكلة بطىء Removes unused CSS



Rise Company
13-12-2021, 04:49
ووردبريس WordPress بلوجن wp-rocket حل مشكلة بطىء Removes unused CSS
بلوجن wp-rocket حل مشكلة حظر الكلاود فلير cloud flare block
بلوجن wp-rocket كيفية وضع الايبهات فى whitelist cloud flare
Cloudflare - How to fix Critical CSS Errors

المشكلة :

https://www.rise.company/upload/uploads/163936344448051.png

عند تشغيل Removes unused CSS يتاخر جدا ولا يكتمل الا بعد وقت طويل واذا اكتمل يكون خطا
على عكس العادة ياخذ دقيقة واحدة فقط وليس ربع ساعة بدون نتيجة !!!

حل المشكلة :

فى الغالب هتكون مفعل الكلاود فلير cloudflare وهو سبب المشكلة
حيث يجب عمل allow للايبيهات الخاصة بـ wprocket داخل الكلاود فلير cloudflare
كذلك يجب عمل allow للايبيهات الخاصة بـ سيرفر الاستضافة نفسه داخل الكلاود فلير cloudflare
والدليل افتح Firewall Events وهتجد ان اى بى السيرفر تم حظره وهو سبب المشكلة
وبمجرد عمل allow هيعمل فى الحال بشكل سليم 100 %

----------------------------------------------------------------
Cloudflare Firewall

If you are seeing this error: " Cloudflare protection prevents the service from accessing the website", it means that our tool’s IP address is blocked by the Cloudflare firewall.
To fix this, please add these IP addresses to the allowlist in your Cloudflare account:


109.234.160.58
51.83.15.135
51.210.39.196

In order to whitelist our Critical Path CSS tool’s IP address, please follow these instructions:


Go to Firewall > Tools, you will be creating a new IP Access Rule.
Enter the IP 109.234.160.58.
Select Whitelist.
Repeat for each IP address.

Here’s a picture of the process:

https://www.rise.company/forum/images/imported/2021/12/20.jpg

You can also choose if the rule will be applied for your other sites in Cloudflare, and you can also leave a note if you want.

Here’s how it should look after you have added it to the allowlist:


https://www.rise.company/forum/images/imported/2021/12/53.png

Cloudflare Bot Fight Mode

Cloudflare's Bot Fight Mode can prevent the Critical Path CSS (CPCSS) Generator from accessing your site.
Disable it and check if the CPCSS is generated:

https://www.rise.company/forum/images/imported/2021/12/54.png


المرجع
https://docs.wp-rocket.me/article/1186-cloudflare-fix-critical-css-errors
https://docs.wp-rocket.me/article/1529-remove-unused-css?utm_source=wp_plugin&utm_medium=wp_rocket
https://docs.wp-rocket.me/article/126-using-wordfence-with-wp-rocket