Skip to content

Commit 611cb24

Browse files
committed
Disable LAST_NEWS cookie as its busting the CDN cache
1 parent e884e64 commit 611cb24

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎public/conferences/index.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
$_SERVER['BASE_PAGE'] = 'conferences/index.php';
66
require_once __DIR__ . '/../../include/prepend.inc';
77

8-
mirror_setcookie("LAST_NEWS", $_SERVER["REQUEST_TIME"], 60 * 60 * 24 * 365);
8+
// Disable LAST_NEWS cookie as its busting the CDN cache — disabling temporarily (or not) — Derick
9+
// mirror_setcookie("LAST_NEWS", $_SERVER["REQUEST_TIME"], 60 * 60 * 24 * 365);
10+
911
site_header("PHP Conferences around the world", [
1012
'headtags' => '<link rel="alternate" type="application/atom+xml" title="PHP: Conference announcements" href="' . $MYSITE . 'feed.atom">',
1113
'current' => 'community',

‎public/index.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
require_once __DIR__ . '/include/pregen-confs.inc';
5656
require_once __DIR__ . '/../include/version.inc';
5757

58-
mirror_setcookie("LAST_NEWS", $_SERVER["REQUEST_TIME"], 60 * 60 * 24 * 365);
58+
// Disable LAST_NEWS cookie as its busting the CDN cache — disabling temporarily (or not) — Derick
59+
// mirror_setcookie("LAST_NEWS", $_SERVER["REQUEST_TIME"], 60 * 60 * 24 * 365);
5960

6061
$content = "<div class='home-content'>";
6162
foreach ((new NewsHandler())->getFrontPageNews() as $entry) {

0 commit comments

Comments
 (0)