WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Gyroscopic
    Member
    Posted 2 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...
    http://localhost/mysite/wp-content/plugins/gd-star-rating/css/gdsr.css.php?t=1319983880&s=a05i05m20k20c00r05%23121620243046%23121620243240%23s1pchristmas%23s1pcrystal%23s1pdarkness%23s1poxygen%23s1goxygen_gif%23s1pplain%23s1ppumpkin%23s1psoft%23s1pstarrating%23s1pstarscape%23t1pclassical%23t1pstarrating%23t1gstarrating_gif%23lsgflower%23lsgtriangles%23lsg&o=off&ver=1.9.10&w3tc_preview=1

    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

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. Frederick Townes
    Member
    Plugin Author

    Posted 2 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
    Member
    Posted 2 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
    Member
    Plugin Author

    Posted 2 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

About this Topic