-
Notifications
You must be signed in to change notification settings - Fork 3
DjinnS/opencart-Memcache-backend
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
You need to install memcache pecl extension: # pecl install memcache (tested with version 3.0.5) Add the following lines to your config.php file: // CACHE define('CACHE_BACKEND','mc'); define('MC_HOST','localhost'); define('MC_PORT','11211'); Remember to change MC_HOST if memcached isn't on the same machine ! You can now cache your HTML block (as in Magento) via the render() function. For example, if you want cache 60 secondes you footer block, you need to add the value 60 in parameter to the render function on the controler file for the footer. Replace "$this->render()" by "$this->render(60)" in the file "catalog/controller/common/footer.php" (~ line 53). In future version, cache life time management will be available.
About
Use memcache as a cache backend instead of default file backend. It also provide block cache feature.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published