Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache bust take 2 #941

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/launch-week/ProductHunt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const url =
export default function ProductHunt() {
// We do this b/c this is a descendent of a card which is a link. This is a hack and I'm not proud of it.
// cache bust every 60s
const ts = useMemo(() => Math.floor(Date.now() / 1000 / 60), []);
const ts = Math.floor(Date.now() / 1000 / 60);
return (
<div
className="cursor-pointer"
Expand Down
2 changes: 1 addition & 1 deletion components/ProductHuntAnnouncementBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { useMemo } from "react";

const ProductHuntAnnouncementBanner = () => {
// cache bust every 60s
const ts = useMemo(() => Math.floor(Date.now() / 1000 / 60), []);
const ts = Math.floor(Date.now() / 1000 / 60);
return (
<div className="py-4 px-4 flex flex-col md:flex-row items-center justify-center border-b border-[#B0B0B0] gap-8 relative">
<div className="text-sm text-basis max-w-[826px]">
Expand Down
Loading