• webmaster1855

    (@brandsforemployees)


    Hi there,

    At first I want to say that this plugin is absolutely amazing! My page load time is about 8 times faster without wp super cache!

    Sadly it’s not working perfectly yet. I have a lot of important, custom php code (about 1500 code lines) in the functions.php file of my theme – including a header redirection (basically this: header(“Location: “.site_url().”/de/login.php”);) to a loginpage if a session is not set. If I activate the plugin the redirection is not working anymore and the page is accessible without login.

    Is it somehow possible to exclude the functions file from caching to get this working properly?

    Thanks so much in advance for your feedback.

    BR,

    John

    • This topic was modified 6 years, 3 months ago by webmaster1855.
Viewing 1 replies (of 1 total)
  • You’ll have to use “simple caching” and create a WP Super Cache plugin that does the session check. That code loads when the caching code runs before WordPress so you can do the redirect really early in the process.

Viewing 1 replies (of 1 total)
  • The topic ‘Functions.php ignored’ is closed to new replies.