Support » Plugins » [Plugin: WP CSS] how cache works ?

  • I just wanna know how cache works in wp-css

    I mean when cache files are created ? when every single user request the page

    I mean if I have 999 user..would I have 999 cache files,one for each user !?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    The caching works on two levels.

    1) A CSS file is created inside the /cache/ folder.
    2) Once a user accesses your sites, expires and max age headers are sent to the user to cache the CSS file in their browser.

    Lets say you set the expiry time to 1,200,000 seconds which is about two weeks. The browser will use the cached file and won’t bother checking if a new one exists.

    When these two weeks pass, the plugin will create a new file for CSS file and let the client’s browser know via the ‘t’ attribute (located at the end of the url for the css file) that it is a different file.

    So answer your question, only one CSS file is created.


    Thanks for your answer I get it now .

    I really love your plugins wp-css and wp-js and I use both.

    But what about all these files prefixed with tmp and only contain the word ‘test’?
    I had a problem in my server concerning permissions,so I had to create /cache/ dir myself.

    is it related ? or it is just normal behavior of plugin ?

    Glad to hear you’re liking the plugins!

    The tmp files test to see if the wp-css directory is writable or not. I’ll have a look through the code and found why doesn’t delete those files. I’ll also make sure it only runs in the admin page as not to effect performance.

    Creating the cache folder is normal behaviour (stated in the installation instructions). I can add a feature to automatically create the folder (some PHP server settings don’t allow this though).

    Let me know if there are any other features you’d like to see. I’m open to any ideas 🙂


    How does this plugin work with WP-SuperCache?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP CSS] how cache works ?’ is closed to new replies.