WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: DB Cache Reloaded] How to filter custom fields from db cache? (4 posts)

  1. poer
    Member
    Posted 4 years ago #

    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.

  2. poer
    Member
    Posted 4 years ago #

    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;
    }
  3. kdeathboo
    Member
    Posted 4 years ago #

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

  4. fader
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic