Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there any mean to exclude a *.php file to WP Super Cache?
I've in my single.php page an include news.php, the file news.php contains ten links to my last articles.

So I want to cache single.php but to exclude news.php that is included in single.php.

It is possible? How can I do that?

share|improve this question

1 Answer

Follow the steps below to prevent caching of the news.php file:

  1. Visit the WP Super Cache settings page in your WordPress administration dashboard (Settings > WP Super Cache).

  2. Visit the 'Advanced' tab along the top of that page

  3. Scroll down to the Accepted Filenames & Rejected URIs heading

  4. Look for the box with the description of:

    Add here those filenames that can be cached, even if they match one of the rejected substring specified above.

  5. Enter news.php on a new line in the textbox below the description

  6. Click Save Files ยป

share|improve this answer
Thank you! I've tried this, doesn't change :( my list isn't dynamically generated :/ – ranell Oct 29 '12 at 18:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.