You are here

UPGRADE.txt in CDN 6.2

Same filename and directory in other branches
  1. 7.2 UPGRADE.txt
From 1.x to 2.x
---------------
Upgrading from CDN integration 1.x to 2.x requires applying a new core patch.
Alternatively, there is now a new type of CDN integration that does not
require a core patch, instead it relies on the theme layer to alter file URLs.
It is slower and won't be able to alter *all* file URLs, but it is easier to
use. When the module detects that the patch is not applied, it will
automatically fall back to this mechanism.
Also note that the core patch is already included in Pressflow and Cocomore
Drupal!

The recommended steps to update your Drupal site are:
1) Copy the 1.x core patch (patches/drupal6.patch) to the Drupal root directory.
2) Revert the 1.x core patch:
    patch -p0 -R < drupal6.patch
3) Disable CDN integration at admin/settings/cdn.
4) Update the CDN integration module code.
5) Copy the 2.x core patch (patches/drupal6.patch) to the Drupal root directory.
6) Apply the 2.x core patch:
    patch -p0 < drupal6.patch
7) Re-enable CDN integration at admin/settings/cdn.

The ImageCache module patch has remained unchanged since version 1.x. When you
did not apply the core patch and thus want to rely on the theme layer fallback
mechanism, you don't have to apply the ImageCache module patch either.
But when you update to an ImageCache version that's newer than 2.0 beta 10,
you will have to apply the alternative patch: patches/imagecache_6--2.patch.
Even better: if you update to an ImageCache version that's newer than 2.0 beta
12, you won't have to apply any patch at all!


From the Parallel module (1.0) to the CDN module (>=2.1)
--------------------------------------------------------
In February 2011, the Parallel module was merged with the CDN module since the
CDN module had received a superset of the Parallel module's functionality.
Hence it no longer made sense to maintain the Parallel module.
This is a guide on how to migrate from the Parallel module to the CDN module.

1) Download and install CDN module version 2.1 or newer.
2) Download Parallel module version 1.0 (its latest release).
3) Run update.php. This will migrate the Parallel module's settings to the CDN
   module.
4) Visit admin/settings/cdn/details. You should see a translation of your
   Parallel module settings to the CDN module's format here.
5) Visit admin/settings/cdn. You can enable the CDN module here, or run it in
   debug mode to give it a try.
6) Disable the Parallel module at admin/build/modules.
7) Uninstall the Parallel module at admin/build/modules/uninstall.
   
If you'd prefer to stay in control and would like to enter your settings
yourself into the CDN module, that's also possible. Then you only need to
perform steps 1, 6 and 7 and finally go to admin/settings/cdn, where you can
then  enter your desired configuration. 

File

UPGRADE.txt
View source
  1. From 1.x to 2.x
  2. ---------------
  3. Upgrading from CDN integration 1.x to 2.x requires applying a new core patch.
  4. Alternatively, there is now a new type of CDN integration that does not
  5. require a core patch, instead it relies on the theme layer to alter file URLs.
  6. It is slower and won't be able to alter *all* file URLs, but it is easier to
  7. use. When the module detects that the patch is not applied, it will
  8. automatically fall back to this mechanism.
  9. Also note that the core patch is already included in Pressflow and Cocomore
  10. Drupal!
  11. The recommended steps to update your Drupal site are:
  12. 1) Copy the 1.x core patch (patches/drupal6.patch) to the Drupal root directory.
  13. 2) Revert the 1.x core patch:
  14. patch -p0 -R < drupal6.patch
  15. 3) Disable CDN integration at admin/settings/cdn.
  16. 4) Update the CDN integration module code.
  17. 5) Copy the 2.x core patch (patches/drupal6.patch) to the Drupal root directory.
  18. 6) Apply the 2.x core patch:
  19. patch -p0 < drupal6.patch
  20. 7) Re-enable CDN integration at admin/settings/cdn.
  21. The ImageCache module patch has remained unchanged since version 1.x. When you
  22. did not apply the core patch and thus want to rely on the theme layer fallback
  23. mechanism, you don't have to apply the ImageCache module patch either.
  24. But when you update to an ImageCache version that's newer than 2.0 beta 10,
  25. you will have to apply the alternative patch: patches/imagecache_6--2.patch.
  26. Even better: if you update to an ImageCache version that's newer than 2.0 beta
  27. 12, you won't have to apply any patch at all!
  28. From the Parallel module (1.0) to the CDN module (>=2.1)
  29. --------------------------------------------------------
  30. In February 2011, the Parallel module was merged with the CDN module since the
  31. CDN module had received a superset of the Parallel module's functionality.
  32. Hence it no longer made sense to maintain the Parallel module.
  33. This is a guide on how to migrate from the Parallel module to the CDN module.
  34. 1) Download and install CDN module version 2.1 or newer.
  35. 2) Download Parallel module version 1.0 (its latest release).
  36. 3) Run update.php. This will migrate the Parallel module's settings to the CDN
  37. module.
  38. 4) Visit admin/settings/cdn/details. You should see a translation of your
  39. Parallel module settings to the CDN module's format here.
  40. 5) Visit admin/settings/cdn. You can enable the CDN module here, or run it in
  41. debug mode to give it a try.
  42. 6) Disable the Parallel module at admin/build/modules.
  43. 7) Uninstall the Parallel module at admin/build/modules/uninstall.
  44. If you'd prefer to stay in control and would like to enter your settings
  45. yourself into the CDN module, that's also possible. Then you only need to
  46. perform steps 1, 6 and 7 and finally go to admin/settings/cdn, where you can
  47. then enter your desired configuration.