Support » Plugins and Hacks » [Plugin: DB Cache Reloaded] How to filter custom fields from db cache?

  • Resolved poer

    (@poer)


    DB Cache Reloaded version: 2.02
    Cache Filter options: _postmeta

    I am confuse here, ’cause it looks like the custom fields still got cache by the plugin. I use get_post_custom function in my theme to collect all the custom fields.

    Could you please explain to me how to prevent caching for custom fields?

    thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • the cache filter working fine now after I edit file db-module.php line 829 into:

    elseif ( // For hard queries - skip them
    	!preg_match( "/\\s*(JOIN | \* |\*\,)/si", $query ) || (
    	// User-defined cache filters
    	isset( $config['filter'] ) && ( $config['filter'] != '' ) &&
    	preg_match( "/\\s*(".$config['filter'].")/si", $query ) )) {
    	$dbcr_cacheable = false;
    }

    Thank you! This solved the problem with wp-postviews. The counter is now working well!

    Thank you, but I would like to find a solution without file editing, because changes do not save after plugin update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: DB Cache Reloaded] How to filter custom fields from db cache?’ is closed to new replies.