2010-10-13 88 views
0

在我的情况下,我升级内存缓存模块,虽然有一个README.txt但似乎不具有可操作性:如何升级drupal模块?

1. Install the memcached binaries on your server. See http://www.lullabot.com/articles/how_install_memcache_debian_etch 
2. Install the PECL memcache extension for PHP. This must be version 2.2.1 or higher or you will experience errors. 
3. Put your site into offline mode. 
4. Download and install the memcache module. 
5. If you have previously been running the memcache module, run update.php. 
6. Apply the DRUPAL-5-x-cache-serialize.patch from the patches folder that 
    comes with the module. Version specific, so use DRUPAL-5-6-cache-serialize.patch 
    if you are running Drupal 5.6. 
7. Start at least one instance of memcached on your server. 
8. Edit settings.php to configure the servers, clusters and bins that memcache 
    is supposed to use. 
9. Edit settings.php to include either memcache.inc or memcache.db.inc. For 
    example, $conf['cache_inc'] ='sites/all/modules/memcache/memcache.db.inc'; 
10. Bring your site back online. 

特别step4,这是否意味着只要解模块,并更换所有的东西,在原来的目录?

我现在的内存缓存的版本是5.x-1.9并有5.x-1.10可用,但我不认为它可以在admin/logs/updates

回答

1

第4步意味着你删除旧模块目录完全,然后才解压缩新的模块代码。你不需要旧代码的任何残余。

1

还要注意,

  1. 并非所有的模块开发者认为相同点左右发布:有时候1.2和1.3是主要重写或配备了全新的功能,主题化的功能,网页或API。
  2. 并非所有升级都与其他兼容。有时你不能将模块B更新到1.4,因为它依赖于A,A看起来与1.4(尚)不兼容。 Drupal不支持对版本的依赖。
  3. 主要版本暗示(但不保证)不兼容,甚至完全重写:从5.x-1.4升级到5.x-2.1可能会强制重写自定义代码,包括主题。
  4. 安全更新通常依赖于早期版本:6.x-1.2可能会引入新功能(您不想或不想忽略),6.x-1.3可能是一个安全发布版本,需要(某些)的6.x-1.2中的变化可用。然后你必须修补补丁,或者反过来通过该功能发布。