Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How do I cache specific file in WordPress?

I have a file in a theme in WordPress and W3 Total cache. The file has a .php extension and is loading dynamic CSS from database. It takes too much time to load current settings from DB so it's slowing down page significantly.

How can I set W3 Total Cache so it caches the file?

share|improve this question

migrated from webmasters.stackexchange.com Feb 11 at 19:54

This question came from our site for pro webmasters.

If said file is loading WP environment at all? Without that I doubt it would be possible to cleanly cache it, maybe even then. I would question implementation in first place if it's that slow. –  Rarst Feb 11 at 20:58
Hi Rarst, it's a file that belongs to theme. I can hardly do anything about it. It has administration to change css... –  greenleader Feb 12 at 14:26

Your Answer


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

Browse other questions tagged or ask your own question.