Drupal → Неприятная особенность модуля CAPTCHA
Страницы, на которых выводится капча, всегда генерируются заново, минуя кэш. Это обусловлено тем, что каждый посетитель должен видеть свою уникальную капчу.
Файл captcha.module, функция captcha_process
:
... // Prevent caching of the page with CAPTCHA elements. // This needs to be done even if the CAPTCHA will be ommitted later: // other untrusted users should not get a cached page when // the current untrusted user can skip the current CAPTCHA. global $conf; $conf['cache'] = FALSE; ...
Оставить комментарий