4 Types of Web Cache (And When to Use 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)
Forum rules
Please make yourself familiar with our rules and guidelines before posting.
Please make yourself familiar with our rules and guidelines before posting.
-
- Administrator
- Posts: 1786
- Joined: Fri Nov 08, 2019 12:44 am
- Reputation: 987
- Location: Canada
- Has thanked: 22 times
- Been thanked: 113 times
- Contact:
4 Types of Web Cache (And When to Use Them)
Did you know there are 4 types of web cache and when to use each of them?
-
- Administrator
- Posts: 1354
- Joined: Fri Nov 08, 2019 12:11 pm
- 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)
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.
If anyone has any interest I will be happy to post the code.
Colbyt
Reducing my online presence to do some other things.
Reducing my online presence to do some other things.
-
- Administrator
- Posts: 1786
- Joined: Fri Nov 08, 2019 12:44 am
- Reputation: 987
- Location: Canada
- Has thanked: 22 times
- Been thanked: 113 times
- Contact:
Re: 4 Types of Web Cache (And When to Use Them)
Colbyt, do you think you could incorporate into something like a Wordpress theme instead of using a plugin?
-
- Administrator
- Posts: 1354
- Joined: Fri Nov 08, 2019 12:11 pm
- 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)
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.
Reducing my online presence to do some other things.
Who is online
Users browsing this forum: No registered users and 153 guests