Can I cache two different versions of a page in CodeIgniter?

By default, No CodeIgniter looks for a page with a name of the hashed filename+plus other stuff. You'd need to have another URL for another cached page.

By default, No. CodeIgniter looks for a page with a name of the hashed filename+plus other stuff. You'd need to have another URL for another cached page.

CodeIgniter lets you cache your pages in order to achieve maximum performance. Server resources, memory, and processing cycles utilized, which affect your page load speeds. By caching your pages, since they are saved in their fully rendered state, you can achieve performance that nears that of static web pages.

How Does Caching Work? Caching can be enabled on a per-page basis, and you can set the length of time that a page should remain cached before being refreshed. When a page is loaded for the first time, the cache file will be written to your application/cache folder.

And sent to the requesting user's browser. If it has expired, it will be deleted and refreshed before being sent to the browser. Note: The Benchmark tag is not cached so you can still view your page load speed when caching is enabled.

Where n is the number of minutes you wish the page to remain cached between refreshes. The above tag can go anywhere within a function. Most logical to you.

Once the tag is in place, your pages will begin being cached. Warning: Because of the way CodeIgniter stores content for output, caching will only work if you are generating display for your controller with a view. Application/cache folder such that it is writable.

If you no longer wish to cache a file you can remove the caching tag and it will no longer be refreshed when it expires. Removing the tag will not delete the cache immediately. It will have to expire normally.

Will need to manually delete it from your cache folder.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions