Viewing 3 replies - 1 through 3 (of 3 total)
  • Current documentation for exclusion is here. We also provide an API to exclude whatever you want from caching.

    tim

    Thread Starter wordpresslover7

    (@wordpresslover7)

    According to your documentation it looks like a specific php file cannot be excluded from cachig in the admin panel.

    The only way would be API https://docs.wordfence.com/en/DoNotCache

    Tim I need a developer who can solve this problem. Could you do it for me or recommend someone? The problem is wordfence caching which breaks the post views counter.

    I already spoke with Alaa from Wordfence which knows sahifa theme very well and now works for Wordfence but he is not a php developer. He recommended asking you that question here. My Gmail: rekinfinansow

    Thread Starter wordpresslover7

    (@wordpresslover7)

    This is the the part of php file I don’t want to cache. How should I apply your function donotcache() correctly in this case?

    <?php
    global $get_meta;
    if( ( tie_get_option( 'post_meta' ) && empty( $get_meta["tie_hide_meta"][0] ) ) || $get_meta["tie_hide_meta"][0] == 'no' ): ?>
    <p class="post-meta">
    <?php if( tie_get_option( 'post_views' ) ):
    	$text = __ti( 'Views' );
    	echo tie_views( $text ); ?>
    <?php endif; ?>
    </p>
    <div class="clear"></div>
    <?php endif; ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘exclude specific php files from caching (post views)’ is closed to new replies.