2025年01月28日 建站教程
利用wordpress
开发,如何禁用wordpress
缓存,下面web建站小编给大家简单介绍一下实现代码!
具体代码如下:
function hook_nocache() { <meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" /> <meta http-equiv="pragma" content="no-cache" /> } add_action('wp_head', 'hook_nocache');
本文链接:http://so.lmcjl.com/news/22197/