|
|
| Adds ability to globally cache certain segments of code. Wordpress Tutorial |
|
Noted That:
|
|
Start the Tips:
Step-1 : Download " wp-cache-block.zip " to Your Local Computer. Step-2 : Then, Login to your " yourdomain.com/wp-admin " Dashboard.
Step-3 : Then, Click on " Plugins " + " Add New " from left Side Menu of Dashboard.
Step-4 : Now, Click on " Upload Plugin " button.
Step-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 "
Step-6 : Now, Click on " Active Plugin "
Step-7 : Then, See left Side Menu. " Wp Cache Block " folder is added on left Side Menu. Now, Click on " Wp Cache Block " folder. Noted that: If you do not see " Wp Cache Block " folder on left Side Menu then, see at left Side Menu " Settings " or " Tools ". Step-8 : Now you configure yourself oR Watch video tutorial below about Wp Cache Block Configurations and Settings or How to work " Wp Cache Block " in your WordPress site. oRAfter Activated Plugin According to Step-6 then,
|
| Guide |
|---|
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:
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:
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.
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:
|
| Name |
|---|