Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Khris

    (@topherkris)

    Just an update: Transients work well once the tax terms get pretty large, but it’s such a corner case that I don’t think it’s worth submitting. W3s caching does fine up to a certain size, especially if you can dump it in ram rather than to disk. Also, the client wants a static list of categories anyways, so I’ve hooked the deletion of transients in some weird places.

    Transients are super easy to use, and I think the only adjustments I made were tossing a few of your calls into variables first, and then echoing them rather than making straight calls so I could run the transient if statement to see if it existed already.

    If anyone has the same problem, they’re welcome to email me, but there’s no point submitting for a corner case.

    Thread Starter Khris

    (@topherkris)

    Thanks. That’s what I figured. I think it skipped caching the job_listing_categories due to size, and ideally I’d like to cache job_listing_categories for much longer than the rest of the objects. I’ll look at using transients as the code looks super clean and easy to adapt, thank god. Mind you, i’ve just grepped it for “get_terms(” so there may be dragons elsewhere.

    Thread Starter Khris

    (@topherkris)

    Thanks so much scott.

Viewing 3 replies - 1 through 3 (of 3 total)