Site icon Catch Themes

Weird caching issues due to transients

Was ready to give up on this theme because of a few weird issues. In no particular order: I traced the .custom-header:before selector to custom-css.php and the nepalbuzz_header_bg_custom_css and nepalbuzz_custom_css methods. The problem is, since you're caching nepalbuzz_custom_css as a transient, the custom background CSS wasn't being refreshed between different page views, which meant the header image of the last-cached background css was being output. Uncommenting nepalbuzz_flush_transients(); on Line 22 resolved some of that for me, but if you do want to take advantage of memcache, you probably want to rewrite some of the logic there.
Exit mobile version