Documentation, Reference Materials and Tutorials for Envira Gallery
How to Remove Fragment Cache from Envira
Would you like to remove the fragment cache from Envira? Fragment caching is something Envira does to cache the images on your page to increase loading for larger galleries. This tutorial will walk you through how to remove that cache with the use of a plugin we will create.
This tutorial is a bit more technical than our other docs, but we’ll walk you through the process step by step. In order to remove fragment cache, we’ll need to create and upload a basic WordPress plugin.
If you’re unsure how to create a plugin file, follow these steps below:
Open a text file and make sure that it is a plain text document. You can use a plain text editor like Notepad or a code editor of your choice.
Next, copy and paste the code shown above into the file and save the file as envira-remove-fragment-cache.php.
Once you’ve saved the file you can easily upload this directly to your /plugins directory on your server using FTP or you can right-click on the text document and zip (or compress).
Finally, log in to your WordPress dashboard and go to Plugins » Add New » Upload Plugin and upload the .zip file you just created in the previous step.
Activate the Plugin
Your next step is to activate the plugin you just uploaded. Simply navigate to the Plugins from within your WordPress dashboard and activate the Envira Gallery – Remove Fragment Cache plugin.