In today’s blog, I am going to show you how to use the cache system that is built into your Dolphin 7 based website. If you are an Arvixe client who has a VPS or dedicated server you have the ability to install EAccelerator, XCache, APC or Memcache. These are all PHP opcode cachers which compile the PHP code and cache it in memory. This reduces the average load time and speeds up any PHP based website. To use any of these cache engines you must have PHP running as FastCGI, Fcgid, CGI, or DSO. For the purpose of this tutorial I am going to use the file cache system which does not require any of these to be installed. It is available to anyone, including shared hosting clients and clients who chose to run PHP as suPHP.
To begin, we will log into our Dolphin 7 admin and then click “Host Tools” under the “Tools” tab on the left side menu. Then click “Cache Engines” and you will be able to see which caching methods are available on your server.
You will notice “File” has the word “Yes” beside “Installed” and “Available”. Next click “Advanced Settings” under the “Settings” tab on the left side menu. The two sub-headings we will be working with are “Other” and “Template”.
Under the “Other” sub-heading place a check mark beside “Enable caching system to store profiles information”, “Enable DB cache” and “Enable page blocks cache”. Now select “File” on the drop down menus beside “DB cache engine”, “Page blocks cache engine” and “Member menu cache engine”. Now click “Save” at the bottom of the screen.
Now under the “Template” sub-heading place a check mark beside “Enable cache for HTML files”, “Enable cache for CSS files” and “Enable cache for JS/CSS files”. Now select “FileHTML” under the “Template cache engine” drop down menu. Click “Save” at the bottom of the screen to save your selections.
If you ever notice any of the template files have been corrupted you can clear the cache from the main admin screen by clicking “All” under the “Clear Cache” heading. You will also need to clear the cache any time you make changes to the site and you want them to show up immediately.