Tag: Cookies

Using Cookies in WordPress, Part II: Cache-Busting with Ajax

Caching makes everything harder. If you’re writing good code and then you—and your clients, coworkers, etc.—are seeing absolutely no result, the issue is typically caching. In fact, a lovingly cited quote by Phil Karlton holds that “There are only two hard things in Computer Science: cache invalidation and naming things.”


Using PHP Cookies in WordPress

Create your php cookies in WordPress

I’ve always been scared of creating PHP cookies. Cookies are an extremely widely used web technology consisting of little pieces of data that live on your device and remember things: for example, the last product you browsed on Amazon, or whether you’re already logged-in to Gmail. As common as they are, though, cookies have always felt like a spooky piece of web architecture that I presumed would be painful and complex to implement.