Caching types
Description of cache types
By default, the system file caching option is used. Works on all servers.
The following caching types are available to choose from:
Memcache - reduces the load on the database in dynamic web applications.
Xcache - speeds up PHP processing. Almost never found on shared hosting.
eAccelerator - page loading accelerator. Almost never found on shared hosting.
Shmop - shared memory management. Almost never found on shared hosting.
APC(Alternative PHP Cache) - caches and optimizes PHP code . Almost never found on shared hosting.
Redis is a high-performance non-relational distributed data store. Unlike Memcached, which can delete your data at any time, replacing old records with new ones; Redis stores information permanently. Almost never found on shared hosting.
WinCache - page loading accelerator. Almost never found on shared hosting.
It is recommended to use the system file cache.
When switching to other caching types, the availability of the selected caching type is checked. I.e. whether the selected application is installed on your server.
All types of caching, except Memcache and Redis do not require settings. You configure the application when installing it on the server. Knowledge of network administration is required.
Setting up Memcache
Setting up Memcache is easy.
Open the file memcache.inc.php in the directory: /file/config/
Code:
host - usually localhost or server IP. Check with your hosting provider.
port - usually 11211. Check with your hosting provider.
Change the settings in this file and replace it on the server.
Setting up Redis
Open the file redis.inc.php in the directory: /file/config/
Code:
host - usually 127.0.0.1 or server IP. Check with your hosting provider.
port - usually 6379. Check with your hosting provider.
Change the settings in this file and replace it on the server.
Last updated