-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathREADME
More file actions
22 lines (13 loc) · 743 Bytes
/
Copy pathREADME
File metadata and controls
22 lines (13 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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.