diff --git a/recaptcha.module b/recaptcha.module index 13a83c4..ae49194 100644 --- a/recaptcha.module +++ b/recaptcha.module @@ -103,8 +103,7 @@ function recaptcha_captcha() { // If recaptcha is using AJAX API, set caching // back to it's old state as stored in DB. global $conf; - $cache = variable_get('cache', FALSE); - $conf['cache'] = $cache; + $conf['cache'] = unserialize(db_query("SELECT value FROM {variable} WHERE name = 'cache'")->fetchField()); } // Construct the Javascript, but only display it once.