4 Types of Web Cache (And When to Use Them)

The web coding section.
Forum rules
Please make yourself familiar with our rules and guidelines before posting.
Post Reply
Accrete
Administrator
Posts: 1786
Joined: Fri Nov 08, 2019 12:44 am
Latest blog post: Have You Read the Webmaster Guidelines Yourself?
Answers: 1
Reputation: 987
Location: Canada
Has thanked: 22 times
Been thanked: 113 times
Contact:

4 Types of Web Cache (And When to Use Them)

Post by Accrete »

Did you know there are 4 types of web cache and when to use each of them?
...There are several types of web cache, each of which is useful in different circumstances. It’s important to understand the kinds of data they store, as well as the levels of control they offer to you and end-users.

In this article, we’ll discuss the importance of web caching. We’ll then look at four different types of web cache, when to use them, and how to set them up...
4 Types of Web Cache (And When to Use Them)
Yours truly,
Accrete Web Solutions

SEO troubleshooting and review services available. - Pm me.

Colbyt
Administrator
Posts: 1350
Joined: Fri Nov 08, 2019 12:11 pm
Latest blog post: The magical little can that replaces 4 pantry item...
Answers: 2
Reputation: 617
Location: Central Kentucky USA
Has thanked: 149 times
Been thanked: 42 times
Contact:

Re: 4 Types of Web Cache (And When to Use Them)

Post by Colbyt »

If you dabble in PHP you can write your own caching system into your web pages. It just takes a few lines of code at the beginning and end of your pages.

If anyone has any interest I will be happy to post the code.
Colbyt
Reducing my online presence to do some other things.

Accrete
Administrator
Posts: 1786
Joined: Fri Nov 08, 2019 12:44 am
Latest blog post: Have You Read the Webmaster Guidelines Yourself?
Answers: 1
Reputation: 987
Location: Canada
Has thanked: 22 times
Been thanked: 113 times
Contact:

Re: 4 Types of Web Cache (And When to Use Them)

Post by Accrete »

Colbyt, do you think you could incorporate into something like a Wordpress theme instead of using a plugin?
Yours truly,
Accrete Web Solutions

SEO troubleshooting and review services available. - Pm me.

Colbyt
Administrator
Posts: 1350
Joined: Fri Nov 08, 2019 12:11 pm
Latest blog post: The magical little can that replaces 4 pantry item...
Answers: 2
Reputation: 617
Location: Central Kentucky USA
Has thanked: 149 times
Been thanked: 42 times
Contact:

Re: 4 Types of Web Cache (And When to Use Them)

Post by Colbyt »

Accrete wrote: Tue Jul 07, 2020 7:36 pm Colbyt, do you think you could incorporate into something like a Wordpress theme instead of using a plugin?
I doubt that I could. I gave up on WP a long time ago. In their effort to be all things to all people it is just way to convoluted and bulky for my tastes.

If you can identify the pages that create the pages you want to cache the process is something like this;
pseudo code:
Check the cache directory if file exists && it is within life parameters
If yes and yes serve the cached page and skip the page execution
If no start the output buffer, produce the page, and write the results to the cache directory and the browser.
Close the output buffer

About 10 lines of code at the top of the page and 10 at the bottom. I have not tested it with PHP7 but I don't recognize any problems looking at the code.
Colbyt
Reducing my online presence to do some other things.

Post Reply

Return to “Web HTML Coding and Web Programming”

Who is online

Users browsing this forum: No members and 12 guests