Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何升级drupal模块?_Drupal_Memcached - Fatal编程技术网

如何升级drupal模块?

如何升级drupal模块?,drupal,memcached,Drupal,Memcached,就我而言,我正在升级memcache模块,虽然有一个README.txt,但它似乎不可操作: 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 highe

就我而言,我正在升级memcache模块,虽然有一个
README.txt
,但它似乎不可操作:

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
,这是否意味着只需解包模块并替换原始目录中的所有内容

我当前的memcache版本是
5.x-1.9
,还有
5.x-1.10
可用,但在
admin/logs/updates

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

另外请注意

  • 并非所有模块开发人员对dot版本的看法都是一样的:有时1.2和1.3是主要的重写版本,或者带有全新的特性、可主题化的函数、页面或API
  • 并非所有升级都与其他升级兼容。有时您无法将模块B更新为1.4,因为它与A的依赖关系,A似乎与1.4不兼容(尚未)。Drupal不支持对版本的依赖
  • 主要版本暗示(但不保证)不兼容,甚至完全重写:从5.x-1.4升级到5.x-2.1可能会强制对自定义代码(包括主题)进行主要重写
  • 安全更新通常依赖于早期版本:6.x-1.2可能会引入新功能(您不希望或希望忽略),6.x-1.3可能是一个安全版本,需要(部分)6.x-1.2中的更改才能使用。然后,您必须要么摆弄补丁,要么继续使用该特性版本