Cache API Images to Prevent Hot Linking
Cache API Images to Prevent Hot Linking
Cache API Images to Prevent Hot Linking
Update Cache on Save Instead of Clearing It?
An issue like this is almost always related to cache plugins going haywire after a site is being migrated. Delete the folder of the plugin that’s using Redis via your hosting’s file manager or FTP/SFTP. Check if the error goes away by visiting the pages of your site where you usually see the error. If … Read more
Flushing or disabling cache on WordPress
I settled on using wp_cache_set and wp_cache_get which seems to do well. I create a key based on the class, function, and parameters: $cacheKey = self::createCacheKey( __CLASS__, __FUNCTION__, $referenceYear, $referenceMonth ); createCacheKey() looks like: protected static function createCacheKey( …$args ): string { return implode(‘-‘, $args); } And I’m sure to use an appropriate expiration. For … Read more
Dropdown menu only appearing when logged in
Content Encoding Error
Sudden ERR_HTTP2_PROTOCOL_ERROR on every JS and CSS files loads
How to clear cache for get_terms()
For WP Super Cache, it’s not well documented, but there appear to be two ways to accomplish this. Ignore ALL $_GET parameters: Under Wp Super Cache Settings > Advanced, there is a checkbox labeled “Don’t cache pages with GET parameters. (?x=y at the end of a url)”. This would mean that any URL would be … Read more