Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8528369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:47:10+00:00 2026-06-11T08:47:10+00:00

I made a dynamic site that has over 20,000 pages and once a page

  • 0

I made a dynamic site that has over 20,000 pages and once a page is created there is no need to update it for at-least one month or even a year. So I’m caching every page when it is first created and then delivering it from a static html page

I’m running a php script (whole CMS is on PHP) if (file_exists($filename)) to first search for the filename from the url in cache-files directory and if it matches then deliver it otherwise generate the page and cache it for latter use. Though it is dynamic but still my url does not contain ?&=, I’m doing this by - and breaking it into array.

What I want to know is will it create any problem to search for a file from that huge directory?

I saw a few Q/A like this where it says that there should not be problem with number of files I can store on directory with ext2 or ext3 (I guess my server has ext3) file system but the speed of creating a new file will decrease rapidly after there are files over 20-30,000.

Currently I’m on a shared host and I must cache files. My host a soft limit of 100,000 files in my whole box which is good enough so far.

Can someone please give me any better idea about how to cache the site.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T08:47:11+00:00Added an answer on June 11, 2026 at 8:47 am

    You shouldn’t place all of the 20K files in a single directory.

    Divide them into directories (by letter, for example), so you access:

    a/apple-pie-recipe
    j/john-doe-for-presidency
    

    etc.

    That would allow you to place more files with less constraints on the file-system, which would increase the speed. (since the FS doesn’t need to figure out where your file is in the directory along with other 20k files, it needs to look in about a hundred)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dynamic form that adds users to the site, made so you
I've made dynamic forms that can update an entire list of options with a
I made a devexpress ribbon and have a ribbon page for dynamic controls which
I made a dynamic form with an add button that creates a new division
We made a mistake in the scope of our dynamic pages on a new
I currently have a community site that I run that is made up of
I would like to show a video on a website made of a dynamic
I made a dll in c# but i need to export the functions. Is
I made an iphone app to capture image from camera and to set that
I made an application that passes trough an XML file and extracts the entries

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.