Uncategorized

  • A persistent object cache changes what transients mean

    Without a drop-in, a transient is two rows in wp_options. With one, transients are stored in the object cache and never touch the database — which is faster…

  • rest_prepare_post to reshape a response

    Removing a field from a core endpoint, or renaming one, has no registration API — the filter on the prepared response is the only hook, and it runs…

  • HTTP caching headers the application controls

    A reverse proxy or CDN caches what the response tells it to cache, which means the decision belongs in the application and usually is not made at all…

  • Events describe what happened, commands ask for something

    Both end up on the same bus and they are opposites. A command is addressed to one handler and may be refused; an event is a statement of…

  • The asset pipeline Laravel 5.4 shipped

    Elixir wrapped gulp, which wrapped everything else. Mix wraps webpack directly — and leaves the configuration reachable when the abstraction runs out.

  • Prefix indexes on a long varchar

    Indexing a 255-character column costs 255 characters per row in the index, and for a lookup that is unique within the first dozen characters most of that is…

  • minmax and auto-fit build a responsive grid without media queries

    A card grid that goes from four columns to two to one has always meant three breakpoints, chosen by guessing at device widths rather than at the content.…

  • Replication lag is a symptom, not a metric

    Seconds_Behind_Master is the number everyone alerts on and it measures one thing: how far behind the applying thread is on the transaction it is currently executing. It reads…

  • API resources replaced the transformer package

    Shaping a model for JSON has meant a transformer library or toArray() on the model, and the second couples the wire format to the database columns — so…

  • nginx map is a lookup table, not a conditional

    if inside a location is famously unreliable, and most uses of it are really a lookup — this value maps to that value — which map expresses directly…