Horje
Adds ability to globally cache certain segments of code. Wordpress Tutorial

Noted That:

  • To install correctly this wp-cache-block.zip .
  • Fisrt Download the wp-cache-block.zip to your computer
  • Extract/Open wp-cache-block.zip to Your Computer.
  • Then, Find readme.txt file inside wp-cache-block.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.

Start the Tips:

1. First Download " wp-cache-block.zip " Plugin to your Local Computer. (Click Download)

2. Then, Login to your " yourdomain.com/wp-admin " Dashboard.

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on " Plugins " + " Add New " from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

5. Now, Browse " wp-cache-block.zip "  Downloaded plugin from your computer, Where you downloaded wp-cache-block.zip According to Step – 1 Above then, click on " Install Now"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on " Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. " WP Cache Block " folder is added on left sidemenu. Now, Click on " WP Cache Block " folder.

   Noted that: If you do not see " WP Cache Block " folder on left sidemenu then, see at left sidemenu " Settings " or " Tools ".

8. Now you configure yourself oR Watch video tutorial below about  WP Cache Block Configurtions and Settings or How to work " WP Cache Block " in your WordPress site.

 

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " WP Cache Block " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is WP Cache Block
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide
  1. Upload wp-cache-block folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Add cache block areas to the slower parts of your theme. See below.

Adding a cache block only requires wrapping the section of content you want to cache in a couple of lines of code. The key is make sure that the cache block is uniquely idtentified based on the content it will render.

For simple content that is the same on every page:



//the content you want to cache

Content that varies based on page, user, etc, will need to use key builders. Key builders are simple classes that help make a unique key for the block of content based on different parameters.

For caching the_loop in index.php you’ll need to add a Query_Unique_Key_Builder which creates a key based on passed in query_var keys:



 $key_builders) ) ) : ?>
 //the post loop

To cache the comment output, you can use the Pending_Comment_Unique_Key_Builder so users with pending comments will get their own cached page.



 $key_builders) ) ) : ?>
 //the comment loop

If you’re having to render complex data per user, the Per_User_Unique_Key_Builder will help create a unique key per user for the content:



 $key_builders) ) ) : ?>
 //the user specific content


adds , ability , globally , cache , certain , segments , code , tutorial ,

Name

Read Article
https://develop.horje.com/learn/1434/reference