mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Don't cache. No, really. Hat tip: Kimmo Suominen.
git-svn-id: https://develop.svn.wordpress.org/trunk@1983 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -4,6 +4,10 @@ require_once(ABSPATH . 'wp-includes/wp-l10n.php');
|
||||
require_once(ABSPATH . 'wp-admin/admin-functions.php');
|
||||
auth_redirect();
|
||||
|
||||
header('Expires: Mon, 11 Jan 1984 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-cache, must-revalidate, max-age=0');
|
||||
header('Pragma: no-cache');
|
||||
|
||||
$dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories");
|
||||
foreach ($dogs as $catt) {
|
||||
|
||||
Reference in New Issue
Block a user