2010-10-13 117 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中的變化可用。然後你必須修補補丁,或者反過來通過該功能發佈。