Title: How does the cache plugin work
Last modified: July 7, 2024

---

# How does the cache plugin work

 *  Resolved [kristinubute](https://wordpress.org/support/users/kristinubute/)
 * (@kristinubute)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/how-does-the-cache-plugin-work/)
 * Hi
 * I’ve installed Wordfence to do some scanning on a client site and finding some
   dodgy files in your plugin directory. Obviously it won’t be from your plugin 
   BUT…
 * The scan came up with a few dodgy files in the cache directory in wordpress. 
   So I removed your plugin entirely which I thought would fix it. I’ve removed 
   the affected file in Storefront also (only 1)
 * Can you explain how the cache works and how it picks any dodgy files, does it
   copy that dodgy file also into your cache directory ?
 * So I’m trying to figure out HOW to fix it, find all files that are causing it.
   Not sure HOW or WHY it is coming directly into that directory of your plugin 
   when I reinstall it completely.
 * Do you have any suggestions that can help please?
 * I’m trying to fix things, so then thought after cleaning up WordPress etc, then
   I assume I have to uninstall the cache plugin again from scratch. Thereby removing
   any remnant of the dodgy file?
 * All suggestions and help would be greatly appreciated.
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Tamirat B. (a11n)](https://wordpress.org/support/users/tamirat22/)
 * (@tamirat22)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/how-does-the-cache-plugin-work/#post-17880799)
 * Hi [@kristinubute](https://wordpress.org/support/users/kristinubute/) ,
 * Caching plugins like WP Super Cache work by creating and serving static versions
   of your dynamic WordPress pages.
 * If malicious files are found within the cache directory and they are not false
   positives, it likely means that the cached versions of pages at the time when
   the site was scanned included those files. The cache itself doesn’t pick or copy
   malicious files; it generates cached versions based on what exists on the site
   at the time of caching.
 * To address the issue:
    1. Ensure your WordPress core, plugins, and themes are all updated to the latest
       versions. These should keep any unwanted vulnerabilities in check.
    2. Run a scan with a security plugin to identify and remove any infected files.
    3. After cleaning the site, you may need to clear the cache to ensure cached versions
       do not contain any of the problematic files.
 * Reinstalling our plugin from scratch after cleanup is a good practice.
 * If the above steps do not address your issue, please share with us the details
   of the security report you are getting from Wordfence, and we’ll have another
   look. If you want to remain private, you can share follow up with us through 
   our [contact form](https://jetpack.com/contact-support/?rel=support). Please 
   include a link to this thread if you decide to follow up with us directly.
 * Thank you!
 *  Thread Starter [kristinubute](https://wordpress.org/support/users/kristinubute/)
 * (@kristinubute)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/how-does-the-cache-plugin-work/#post-17884826)
 * Thanks so much, that is appreciated !

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How does the cache plugin work’ is closed to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [kristinubute](https://wordpress.org/support/users/kristinubute/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/how-does-the-cache-plugin-work/#post-17884826)
 * Status: resolved