Title: [Plugin: WP CSS] how cache works ?
Last modified: August 19, 2016

---

# [Plugin: WP CSS] how cache works ?

 *  [ihk2010](https://wordpress.org/support/users/ihk2010/)
 * (@ihk2010)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/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)

 *  [halmat](https://wordpress.org/support/users/halmat/)
 * (@halmat)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-css-how-cache-works/#post-867747)
 * 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.
 *  Thread Starter [ihk2010](https://wordpress.org/support/users/ihk2010/)
 * (@ihk2010)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-css-how-cache-works/#post-867753)
 * [@halmat](https://wordpress.org/support/users/halmat/):
 * 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 ?
 *  [halmat](https://wordpress.org/support/users/halmat/)
 * (@halmat)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-css-how-cache-works/#post-867881)
 * 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 🙂
 * Halmat
 *  [mynetweblogs](https://wordpress.org/support/users/mynetweblogs/)
 * (@mynetweblogs)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-css-how-cache-works/#post-867951)
 * 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.

 * 4 replies
 * 3 participants
 * Last reply from: [mynetweblogs](https://wordpress.org/support/users/mynetweblogs/)
 * Last activity: [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-css-how-cache-works/#post-867951)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
