[Plugin: WP Super Cache] Max nr of subdirectories in a Linux limits cached pages
-
I have several aggregator blogs, with a LOT of posts, which I preload as much as possible.
From time to time I got a problem where supercache no longer wanted to cache. Got an error in the source “can not create xxx.tmp”.
The error.log came up with all sorts of errors, including:
[28-Jun-2011 11:43:12] PHP Notice: Undefined index: HTTP_ACCEPT in xxx/wp-content/plugins/wp-super-cache/wp-cache-phase1.php on line 415I checked the supercache directory for that blog, and found that I had 31,998 cached pages, thus 31,998 directories (each cached page is a directory).
after some experimenting, I deleted some 100 cached pages, and lo & behold, the cache started working again.
There seems to be Linux system parameter that limits the maximum number of subdirectories in one single directory: 31998
(see this link)So.. my suggestion is:
1/ If you have a lot of posts, and preload all of them, make sure you stay under the limit of 31,998 cached pages.
2/ it would be good that supercache’s preload mode does not suggest to preload more pages than the system can handle…Peter
- The topic ‘[Plugin: WP Super Cache] Max nr of subdirectories in a Linux limits cached pages’ is closed to new replies.