Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个名为 drupal_get_form 的 profile2 表单——尽管在编辑和保存之后,这些字段仍然会显示一段时间的旧信息。我怎样才能在这里关闭缓存?我正在使用 memcache/varnish/apc 顺便说一句。
我也在其他地方打印这些字段并遇到同样的问题。我宁愿这对于这些字段/表单来说是动态和新鲜的。关于如何做到这一点的任何想法?谢谢!
可能您需要从 memcache 中排除 cache_form :
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
在您的 settings.php 文件中