• Resolved Mew

    (@gokumew2)


    Hi.

    I’m trying to use the cache function of the plugin. Does the plugin overwrite existing cache files when re-caching them?

    At the moment, my cache is 1036 files and 42.3MB. I have the cache scheduled to preload weekly. When I first preloaded the cache, it was only 200 some files, which seemed about right. Now with over a thousand files, I feel like the cache is much larger than it should be since I certainly don’t have over a thousand pages on my site. I’ve tried to purge the cache but the button has no effect.

    Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    Yes the files should be overridden, and purging the cache should also reset the file statistics.

    Is the setting “Generate separate files for mobile devices” enabled? if so, each page will have at least 2 files.

    Are you able to access your site files via FTP? in that case you can browse the cache files in wp-content/cache/wpo-cache and see the files.

    Do you use a SEO plugin that generates a sitemap? in that case WP-Optimize will use it to preload. Otherwise it will find all the posts and pages that can have a permalink.

    Thread Starter Mew

    (@gokumew2)

    Hi.

    Yesterday I pressed the Purge Cache button but it looks like nothing has been purged.

    Yes, I do have “Generate separate files for mobile devices” enabled. Even so, I don’t think there shouldn’t be 1000 files. It looks like there are 4 files for each post/page though? There’s an html page for the desktop and mobile versions, and then .gz for each of those. If each file is counted separately then perhaps that’s where there are so many…

    Yes, I use All In One SEO which generates my XML sitemap.

    Anyway, maybe the file count is correct, but that still doesn’t change the fact that the cache isn’t purging when I tell it to.

    Edit: I take that back… maybe?? I see that the cache was automatically preloaded early this morning. Maybe the cache did purge and was repopulated. I have no idea. The button didn’t seem to do anything after I hit it yesterday though.

    • This reply was modified 5 years, 2 months ago by Mew.

    Hi,

    Yes the 4 files per page are normal in your case, and are counted separately. Because gzip is enabled, WP-Optimize will serve it by preference to the browsers that support it (its compressed and faster), and the html version is a fallback for the browsers / visitors that don’t support gzip.

    Concerning the cache preloading again, it will do so if you have the cache preload schedule enabled.

    When clearing the cache, there should be a sign that it’s happening (See screenshot).

    And if it something goes wrong, there should be a message alerting you.

    If nothing happens at all, you may want to open your browser’s console and see if any errors are shown. A javascript error somewhere, within WP-Optimize or an other plugin could cause the button not to work.

    Plugin Author David Anderson

    (@davidanderson)

    > so, I don’t think there shouldn’t be 1000 files

    You can look in the folder wp-content/cache/wpo-cache to see what’s being generated. You’d be surprised how many pages a WP site has, when you include category indexes, date indexes, tag indexes and all the other hierarchies that it automatically creates pages for.

    > The button didn’t seem to do anything after I hit it yesterday though.

    This is best checked also by looking at that folder, and noting the timestamps on the files. Also, as long as you don’t have something removing it (e.g. Cloudflare, or a minifying plugin), you can view a page as a not-logged-in user and look at the HTML source, and see the datestamp mentioned at the bottom.

    Thread Starter Mew

    (@gokumew2)

    Hi guys.

    The dates of the files match the last cache preload time so I guess everything is in order. Thanks for the help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Large cache– can’t purge?’ is closed to new replies.