How To Use Varnish And Cloudflare For Maximum Caching? | MEKAP’S BLOG

How To Use Varnish And Cloudflare For Maximum Caching? | MEKAP’S BLOG

The first impression of a good WordPress site is that its site’s landing page should load quickly. Then, the loading times of rest of interlinked pages should be fast. For a website to load fast it should have different layered approaches to caching.
How to improve page load times of website?
  1. The first layer is the presence of content delivery network (CDN).
  2. The second layer of creating the faster website is to install a free TLS/SSL certificate signed by CloudFlare on your origin server.
  3. It is completely free of cost.
  4. Enable Varnish cache and enable Varnish cache settings for individual domains.
  5. Most of times sites in the web browser wats for around 1.6 seconds for favicon to load. It is a good idea to add the favicon to reduce this waiting time of web browser in visitor’s computer.
  6. Enable HTTP/2on CloudFlare to work with Varnish cache.
  7. Use HTTPS protocol on your website.
How to enable Varnish cache on your origin server?
  • Log in to cPanel
  • Provide User Name and Password
  • Go to WEB ACCELERATOR in paper_lantern theme.
  • Click on MANAGE VARNISH
  • From MANAGE VARNISH SETTINGS scroll down to CACHE SETTINGS FOR INDIVIDUAL DOMAINS.
  • Enable it on your DOMAIN
  • It might take 30 minutes to enable Varnish cache on your website.
What is Varnish Cache?:
  • Varnish Cache speeds up website rendering time to three to five times.
  • It caches static and dynamic contents of WordPress website.
  • Dynamic contents of a website include images, CSS (Cascade style sheets), plain HTML.
  • Varnish Cache is a web application accelerator.
  • It works as caching HTTP reverse proxy.
  • It is installed on your origin server. (e.g. cPanel)
  • If your network speed of hosting server is fast then it works really fast.
  • It can deliver the high level of content through regular off-the-shelf hardware.
How to enable HTTP/2 on your website?
  • Set up Free CloudFlare CDN for your website
  • Install a free TLS certificate (SSL) signed by CloudFlare on your origin server.
  • Login to CloudFlare and then click on your website name in its dashboard.
  • Go to NETWORK and then HTTP/2 and enable it. Most of the times it is enabled by default if not enable it there.
What is HTTP/2?
  • It is the prominent revision of World Wide Web (WWW)
  • It improves the way HTTP requests and responses are sent through low-latency transport of web contents.
  • It increases page load times of website.
  • It creates per-domain multiplexing of retrieving resources.
  • HTTP header compression.
  • It provides server push by removing latency times on web browser.
  • It works nicely when Varnish cache is enabled on the origin server.
How to add the favicon to the website?
  • Log in to WordPress Admin
  • Put Username or Email Address and password.
  • From sidebar of WordPress Admin choose APPEARANCE
  • Then CUSTOMISE. I USE Twenty Twelve theme.
  • Then go to SITE IDENTITY
  • Then go to SITE ICON. It is favicon.
  • Here upload your favicon and save website.
After enabling CloudFlare, SSL and HTTP/2 on my site, I saw the mobile speed of the website is 77 and desktop is 81. After implementation of Varnish cache, now the mobile score of website 79 and desktop score of the website is 91. This is from Google PageSpeed insight.
I introduced CloudFlare CDN as one cache layer for the website and then Varnish Cache as another layer of caching of contents. This makes the website faster. In this way, original server or the host of the website is being kept secure and the handling of large data traffic rests with reverse proxy Varnish and content distribution network CloudFlare.

Related Posts:

How to install a WordPress plugin? | MEKAP’S BLOG

How to install a WordPress plugin? | MEKAP’S BLOG



WordPress is a software. It is open source. This means it is for everyone. It works with minimal setup. It is constantly updated. It is backed by large and dedicated communities.
In my one post namely, How to install WordPress using site software? I described how to easily install a WordPress website. In another post namely, Create a Landing Page Without Code Or Plugins I described how to create a landing page of WordPress website.
What is WordPress Plugin?
  • Plugins are extended WordPress functionalities.
  • These function does exist in WordPress.
  • Plugins are the easy way to activate these WordPress functions.
  • Better programmers can easily do this with PHP code programming too.
  • Plugins are mostly lightweight.
  • It is created by third-party developers.
  • It is important to download plugins from WordPress administration.
  • Log in to WordPress Admin and then go to SETTINGS and then go to PLUGINS and then ADD NEW.
  • Do not download plugins from other sources.
How to install a WordPress plugin through WordPress Admin?
  1. Log in to WordPress Admin.
  2. Put Username or email address and password.
  3. Click LOG INGo to PLUGINS
  4. Then ADD NEW
  5. Then search for plugin name in the search box namely SEARCH PLUGINS
  6. Then it will show the results.
  7. Choose the plugin to install
  8. Click on INSTALL NOW
  9. Then Click on ACTIVATE to activate the plugin.
  10. How to uninstall a WordPress plugin through WordPress Admin?
  11. Log in to WordPress Admin
  12. Put USERNAME or EMAIL
  13. Put PASSWORD
  14. Go to PLUGINS and the INSTALLED PLUGINS from the sidebar.
  15. Choose which plugin to deactivate by clicking on the checkbox and then click DEACTIVATE
  16. there. Then carry on the similar procedure to DELETE that DEACTIVATE plugin.
How to install a WordPress plugin through cPanel?
  1. Installing WordPress plugin through cPanel is another option.
  2. Go to WordPress Plugin Repository
  3. Search Plugin
  4. Click on it
  5. Download it from blue button Download to computer.
  6. Log in to cPanel
  7. Put User Name and Password
  8. Go to FILES and then FILE MANAGER
  9. Go to wp-content
  10. Go to plugins
  11. Click on it
  12. Then click on UPLOAD
  13. Another Windows will open.
  14. Then click on blue colour SELECT FILE
  15. Choose the local downloaded plugin earlier from computer
  16. Then click upload to upload it to the theme.
  17. Then log out from cPanel
  18. Go to WordPress Admin
  19. From its left sidebar choose PLUGINS
  20. Then INSTALLED PLUGINS
  21. Search for the plugin which you just uploaded through cPanel
  22. Activate it
  23. How to uninstall a WordPress plugin through cPanel?
  24. Log in to WordPress Admin
  25. Go to Plugins
  26. Installed Plugins
  27. Deactivate plugin you want to delete.
  28. Login to cPanel
  29. Go to FILES and then FILE MANAGER
  30. Go to wp-content
  31. Go to plugins
  32. Then DELETE the plugin you want to delete.
How to upload Plugin from WordPress Admin?
  1. In order to upload plugin through WordPress Admin,
  2. log in to WordPress Admin, and
  3. then, go to PLUGINS,
  4. Then go to ADD NEW and
  5. then UPLOAD PLUGINS and
  6. then CHOOSE FILE from the computer and
  7. then after uploading choose Install Now.
It is always a good idea to install the plugin from WordPress Admin. Some website such as Infolinks provides the customised version of the plugin. If you use Infolinks then it is better to download it and then upload it either through cPanel or through WordPress Admin.
In this way, we learn in this article how to download plugin through WordPress Admin, how to upload already downloaded plugin through WordPress Admin and cPanel and then how to delete plugins from cPanel and WordPress Admin.

Related Posts:

एंड्रॉइड एप्लिकेशन डेवलपर्स के लिए सुरक्षा युक्तियाँ

वर्डप्रेस सुरक्षा, विंडोज़ सुरक्षा और एंड्रॉइड सुरक्षा के बारे में पूरी तरह से लिखने के बाद अब एप्लिकेशन डेवलपर के लिए सुरक्षा युक्तियों के बारे में लिखने का समय है। एक अच्छे एंड्रॉइड एप्लिकेशन के एंड्रॉइड विकास में एक तरफ अच्छी आय होने के लिए मुद्रीकृत किया जा सकता है और यदि सभी सुरक्षा मानकों को पूरी तरह से विस्तार से नहीं देखा जाता है तो निश्चित रूप से, हमलावर लोकप्रिय ऐप्स पर हमला करते हैं और यदि सही तरीके से सुरक्षित नहीं होते हैं, तो लंबे समय तक Google आपके ऐप्स को Google Play Store में दिखने से ब्लैकलिस्ट कर सकता है।

किसी भी एप्लिकेशन को बनाने से पहले अधिकांश एप्लिकेशन डेवलपर्स जानते थे कि अंतर्निहित सुरक्षा उपायों के कारण, अनुप्रयोगों के साथ सुरक्षा मुद्दों का प्रदर्शन प्रभाव महत्वपूर्ण रूप से कम हो जाता है। एंड्रॉइड सिस्टम इन ऐप्स में से अधिकांश को अपने पारिस्थितिकी तंत्र में चलाता है जहां यह एंड्रॉइड के साथ एप्लिकेशन चलाने से पहले प्रदर्शन सुधार और सुरक्षा जांच-प्रदान प्रदान करने के लिए सैंडबॉक्सिंग सुरक्षा तंत्र के साथ काम करता है। इसके अलावा, इसमें फाइल सिस्टम अनुमतियां हैं और इसके साथ जुड़े प्रतिबंधों के मुद्दे हैं जो इसे पहले से कहीं अधिक सुरक्षित बना सकते हैं।

एंड्रॉइड एंड्रॉइड एप्लिकेशन सैंडबॉक्स के परिधि के भीतर प्रत्येक एप्लिकेशन चलाता है जो सिस्टम में चलते समय प्रत्येक ऐप से प्रत्येक ऐप को अलग करता है। अधिकांश ऐप्स को एप्लिकेशन प्रबंधन के साथ मिलकर एंड्रॉइड सिस्टम चलाने में मदद करने के लिए सुरक्षित आईपीसी, क्रिप्टोग्राफी और अनुमतियों जैसे विशिष्ट अनुप्रयोग ढांचे के भीतर चलना होता है।

सामान्य स्मृति प्रबंधन त्रुटियों को रोकने के लिए ऐप्स के साथ चलने वाली कई बेहतर तकनीकें हैं और इससे हमलावरों के समय और दायरे को कम करने में भी मदद मिलती है। एंड्रॉइड के नवीनतम संस्करण एन्क्रिप्टेड फ़ाइल प्रबंधन प्रणाली के साथ चलता है जो सामान्य डेटा हानि और ऐप्स के स्मृति प्रबंधन के खिलाफ प्रदर्शन को बेहतर बनाने में मदद करता है। खोए गए या चोरी किए गए डिवाइस के मामले में, एक एन्क्रिप्टेड फ़ाइल सिस्टम हैकर्स को डेटा पढ़ने में मुश्किल बनाने में मदद करता है।

एंड्रॉइड डेटा लीक को कम करने में मदद के लिए विभिन्न उपयोगकर्ताओं को ऐप्स के प्रबंधन की अनुमति प्रदान करता है।

Read More from here

How to Patch a Bicycle Tube | MEKAP’S BLOG

How to Patch a Bicycle Tube | MEKAP’S BLOG For quite some time I found the front tire of my bicycle has some problem. Despite manually pump...