• Resolved Chrissy

    (@paperkawaii)


    Hi again, I previously posted a few months ago about your plugin creating a problem with varnish cache.

    You helped me solve the problem by editing some code in cpcff_session.inc.php

    However there seems to have been an update, and I can no longer find the code you mentioned to change.

    Here is your instruction that worked:

    Hello @paperkawaii,

    Please, follow the steps below:

    1. Open the “/wp-content/plugins/calculated-fields-form/inc/cpcff_session.inc.php” file with the text editor of your choice.

    2. Go to the piece of code:

    if( session_id() == “” ) @session_start();

    and edit it as follows:

    if(!is_admin()) return;
    if( session_id() == “” ) @session_start();

    https://wordpress.org/support/topic/creating-no-cache-headers/

    Can I make the same changes with the updated file? Is there any way I can make this change permanent? Perhaps a code I can pop into my functions file?

    Best wishes

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @paperkawaii,

    Please, in the same file, replace the piece of code:

    if(!is_admin() && session_id() == "" ) @session_start();

    with the following one:

    
    if(!is_admin()) return;
    if(!is_admin() && session_id() == "" ) @session_start();
    

    I will check the implication of this code to be included in the official distribution.

    Best regards.

    Thread Starter Chrissy

    (@paperkawaii)

    Thank you SO much for your quick reply. Varnish is working again, thanks 🙂

    If you could include it, that would be great!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Creating no-cache headers, again’ is closed to new replies.