WordPress.org

Forums

W3 Total Cache
Trick to minifying .js.php and .css.php files? (2 posts)

  1. CorranH96
    Member
    Posted 4 years ago #

    One plugin that I am using has a .js.php and a .css.php file that it uses to retrieve options from the WordPress database and uses those variables from wp_options in the CSS and Javascript file.

    Is there a way to minify these files using W3 Total Cache? If I specify the filepath to the files, W3TC just copies the files and retains the <?php ?> code and doesn't retrieve the variables when caching the file, so it doesn't work properly.

  2. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    Those files likely won't be minified correctly, it depends on how those scripts are written.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic