summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2018-05-24 11:19:44 (GMT)
committerNathaniel Catchpole2018-05-24 11:19:44 (GMT)
commit0076c635dcccaec9abcd65a88b004762471d4b7a (patch)
tree3dfb61d51ee36d8be00694ce7a5a9244bb89c867
parent483e63000ea314c79ef991dafd8cbca228b73904 (diff)
Issue #2960605 by anmolgoyal74, surbz, msankhala, arunkumark, jibran, alexpott: Add docs to the empty hook_update_N used for cache clearing
-rw-r--r--core/modules/image/image.install4
-rw-r--r--core/modules/system/system.install8
-rw-r--r--core/modules/update/update.install4
-rw-r--r--core/modules/views/views.install24
4 files changed, 40 insertions, 0 deletions
diff --git a/core/modules/image/image.install b/core/modules/image/image.install
index d7a2ce7..3be79ba 100644
--- a/core/modules/image/image.install
+++ b/core/modules/image/image.install
@@ -67,4 +67,8 @@ function image_requirements($phase) {
*/
function image_update_8201() {
// Empty update to trigger a cache flush.
+
+ // Use hook_post_update_NAME() instead to clear the cache. The use of
+ // hook_update_N() to clear the cache has been deprecated see
+ // https://www.drupal.org/node/2960601 for more details.
}
diff --git a/core/modules/system/system.install b/core/modules/system/system.install
index 2ab05c5..5b2e4b9 100644
--- a/core/modules/system/system.install
+++ b/core/modules/system/system.install
@@ -1837,6 +1837,10 @@ function system_update_8200(&$sandbox) {
*/
function system_update_8201() {
// Empty update to cause a cache rebuild.
+
+ // Use hook_post_update_NAME() instead to clear the cache.
+ // The use of hook_update_N() to clear the cache has been deprecated
+ // see https://www.drupal.org/node/2960601 for more details.
}
/**
@@ -1844,6 +1848,10 @@ function system_update_8201() {
*/
function system_update_8202() {
// Empty update to cause a cache rebuild.
+
+ // Use hook_post_update_NAME() instead to clear the cache.The use
+ // of hook_update_N to clear the cache has been deprecated see
+ // https://www.drupal.org/node/2960601 for more details.
}
/**
diff --git a/core/modules/update/update.install b/core/modules/update/update.install
index 4cff44c..e4294a0 100644
--- a/core/modules/update/update.install
+++ b/core/modules/update/update.install
@@ -158,4 +158,8 @@ function _update_requirement_check($project, $type) {
function update_update_8001() {
// Empty update forces a call to drupal_flush_all_caches() which rebuilds the
// router.
+
+ // Use hook_post_update_NAME() instead to clear the cache.The use
+ // of hook_update_N to clear the cache has been deprecated see
+ // https://www.drupal.org/node/2960601 for more details.
}
diff --git a/core/modules/views/views.install b/core/modules/views/views.install
index 21b1a50..8d5d250 100644
--- a/core/modules/views/views.install
+++ b/core/modules/views/views.install
@@ -315,6 +315,10 @@ function views_update_8003() {
// Empty update to cause a cache flush so that views data is rebuilt. Entity
// types that don't implement a list builder cannot have the entity operations
// field.
+
+ // Use hook_post_update_NAME() instead to clear the cache.The use
+ // of hook_update_N to clear the cache has been deprecated see
+ // https://www.drupal.org/node/2960601 for more details.
}
/**
@@ -322,6 +326,10 @@ function views_update_8003() {
*/
function views_update_8004() {
// Empty update to cause a cache flush so that views data is rebuilt.
+
+ // Use hook_post_update_NAME() instead to clear the cache.The use
+ // of hook_update_N to clear the cache has been deprecated see
+ // https://www.drupal.org/node/2960601 for more details.
}
/**
@@ -329,6 +337,10 @@ function views_update_8004() {
*/
function views_update_8005() {
// Empty update function to rebuild the views data.
+
+ // Use hook_post_update_NAME() instead to clear the cache.The use
+ // of hook_update_N to clear the cache has been deprecated see
+ // https://www.drupal.org/node/2960601 for more details.
}
/**
@@ -336,6 +348,10 @@ function views_update_8005() {
*/
function views_update_8100() {
// Empty update to cause a cache flush so that views data is rebuilt.
+
+ // Use hook_post_update_NAME() instead to clear the cache.The use
+ // of hook_update_N to clear the cache has been deprecated see
+ // https://www.drupal.org/node/2960601 for more details.
}
/**
@@ -365,6 +381,10 @@ function views_update_8101() {
*/
function views_update_8200() {
// Empty update to cause a cache rebuild so that the container is rebuilt.
+
+ // Use hook_post_update_NAME() instead to clear the cache.The use
+ // of hook_update_N to clear the cache has been deprecated see
+ // https://www.drupal.org/node/2960601 for more details.
}
/**
@@ -372,6 +392,10 @@ function views_update_8200() {
*/
function views_update_8201() {
// Empty update to cause a cache rebuild so that config schema get refreshed.
+
+ // Use hook_post_update_NAME() instead to clear the cache.The use
+ // of hook_update_N to clear the cache has been deprecated see
+ // https://www.drupal.org/node/2960601 for more details.
}
/**