Quantcast
Channel: WordPress.org Forums » [W3 Total Cache] Support
Viewing all articles
Browse latest Browse all 19289

robertv123 on "[Plugin: W3 Total Cache] Too many files"

$
0
0

I have a blog with 130,000 posts and the file system only allows 32000 files. So to allow for more files I added this to
lib/W3/PgCache.php
line 954
$key = $this->_request_host . DIRECTORY_SEPARATOR .
substr($this->_request_uri,0,3) . DIRECTORY_SEPARATOR . $this->_request_uri;
// $key = $this->_request_host . $this->_request_uri;

What it does is makes the key in the format of
host / (first two letters of url ) / uri

Assuming first two letters of your urls are only letters and numbers there is 1296 two letter directories created. In each of those I have any where from 20 to 500 directories which is much more manageable for the filesystem.

https://wordpress.org/plugins/w3-total-cache/


Viewing all articles
Browse latest Browse all 19289

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>