W3 Total Cache
[resolved] Minify xxx.php css files? (4 posts)

  1. Gyroscopic
    Posted 3 years ago #

    Hi, I'm using the v9.2.4 of the W3TC plugin and am trying to minify my css files via the manual method.

    What I want to know is, does minify work with .php programs that create css files as in "gd-star-rating/css/gdsr.css.php" from the gd star rating plugin? If so, what part of the uri do I use? Do I include the query part?

    The full uri is...

    Even though I have added several uri's to the minify list, nothing seems to happen when I do a preview... What should I see in the source code that is different?

    Many thanks


  2. Frederick Townes
    Plugin Author

    Posted 3 years ago #

    Yes you can minify those files (unless they have bugs), but I often recommend avoiding it because if there's ever a bug that makes them return invalid CSS, your entire site layout "breaks".

    In the source code you should see that the file is no longer embedded in the <head> if the file address is properly matched. You wouldn't want to include http://localhost/ in the address.

  3. Gyroscopic
    Posted 3 years ago #

    Hi Frederick,

    Thanks for the quick reply.

    The plugin seems to strip the http://localhost/ when the uri is saved in any case. This still verifies when the verify button is pressed.

    However, the source code still has the the embeded css styles in the head section. I checked in debug mode and there are no errors relating to your plugin, but there is a wp error...

    [18-Mar-2012 00:59:34 UTC] PHP Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in C:\wampserver2\www\mysite\wp-includes\functions.php on line 3587

    Dont know if this is relevant. I'm using wp v3.3.1

  4. Frederick Townes
    Plugin Author

    Posted 3 years ago #

    W3TC doesn't need the host in single site mode.

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