WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Cache files are never deleted (11 posts)

  1. Lone Shooter
    Member
    Posted 10 months ago #

    I upgraded W3TC to the last v0.9.2.11 but generated cache files are never deleted and Empty All Caches option still doesn't work.

    Namely, cache files created in /wp-content/wp-content/cache/page_enhanced/site-name are never deleted, neither automatically nor after Empty All Caches is run manually, so that causes number of inodes on a sever increases dramatically.

    Permissions are valid so this is not the cause of the problem.

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

  2. bobbydonovan
    Member
    Posted 10 months ago #

    Did you have any joy investigating this? I'm not having much luck with the garbage collection removing pages that should be expired.

  3. Lone Shooter
    Member
    Posted 10 months ago #

    Unfortunately, I didn't find solution and what causes it although this problem exists since two versions ago.

  4. sandrodz
    Member
    Posted 10 months ago #

    I can confirm this, inode count on my server went way up and I was investigating the case, I discovered that for past two month wp-content/cache/page_enhanced/site-name has swollen into a monster with files ending in *.old - clear cache doesn't work, only way is to manually clean the folder.

    Funny part is that, rm -r wp-content/cache/page_enhanced/site-name/* was behaving weird because of sheer volume of files! I could see it finished working, but files where still there...

    Anyhow, this is major oversight and will surely cause problems to folks on shared hosting. They all limit inode count per account, you can even get suspended.

  5. Lone Shooter
    Member
    Posted 10 months ago #

    Yes, it definitely causes the problem on shared hosting. In fact, I already have a lot of problems because of blocked accounts. The only solution so far is to use cron jobs on daily base to clean cache files.

  6. Frederick Townes
    Member
    Plugin Author

    Posted 10 months ago #

    What are your settings for BrowserCache HTML expiration time? The plugin checks if file is older than current time minus 5 times the expiration time before it deletes the .old files during the garbage collection run.

    Also what value do you have under garbage collection interval on Page Cache settings page?

    Do you have any issues with scheduled posts since both that and the garbage collection relies on wp-cron?

  7. Lone Shooter
    Member
    Posted 9 months ago #

    Hi Frederick,

    Here are answers/comments to your questions:

    "What are your settings for BrowserCache HTML expiration time?"

    - Some sites have the expiration time set to 3600 sec but some of them are with Browser Cache turned off. The behavior is the same.

    "The plugin checks if file is older than current time minus 5 times the expiration time before it deletes the .old files during the garbage collection run."

    - As I can remember, three or four release ago this didn't affect the cache file deleting if it was started manually (Performance -> Empty All Caches). In that case all files were removed no matter what the expiration time were. Is this changed in last few releases?

    "Also what value do you have under garbage collection interval on Page Cache settings page?"

    - Some sites have 3600 sec but some of them have values less than 1000. The behavior is the same.

    "Do you have any issues with scheduled posts since both that and the garbage collection relies on wp-cron?"

    No, I don't have any issues with scheduled posts. They are published

    Please consider the following:

    - The issue with cached files exists no matter of environments. Sites are hosted on different hosting providers with different environments (shared, dedicated, Centos, Ubuntu...). Tried with different W3TC options but it didn't help.

    - Manual deleting cache (Performance -> Empty All Caches) used to work before two or three latest versions, i.e. after manual deleting the cache files on disk were removed. Now, the manual deleting doesn't delete the cache files located in /wp-content/cache/page_enhanced/%sitename%

  8. dfumagalli
    Member
    Posted 9 months ago #

    Any hope to see the "Empty all caches" option work again?

    I keep getting warnings of accounts suspensions because this plug ins creates > 9300 directories and never deletes anything.

    I used to press Empty all caches to (temporarily) fix the issue, now even that option is broken. It can't be that hard to force delete stuff without looking at fancy cache timeout settings, is it?

    Most of all, is this plugin still being maintained? It used to get lots of features and fixes, now it seems to be dead.

  9. Melih Polat
    Member
    Posted 9 months ago #

    I have the same problem and i also can not delete the files via ftp. And i can not change the file permissions because of the group values.

    Here is the file permissions and groups for w3tc created files :

    permissions -> fle(755)
    group -> 502 503

    these values only exists on w3tc created files.

  10. sandrodz
    Member
    Posted 9 months ago #

    Hi Frederick,

    Irrespective of settings, these files must be removed when "clear all cache" is clicked.

  11. Neseli Enginar
    Member
    Posted 1 week ago #

    I'm deactivated and deleted w3 total cache!
    Because this extension created on my blog : 85,456 Cache files and never deleted.

    I think this extension is not good for shared hosting blog's.

    Sorry for my bad English.

Reply

You must log in to post.

About this Plugin

About this Topic