Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect cache size triggering unnecessary email warnings #414

Open
galbaras opened this issue Feb 12, 2024 · 4 comments
Open

Incorrect cache size triggering unnecessary email warnings #414

galbaras opened this issue Feb 12, 2024 · 4 comments

Comments

@galbaras
Copy link

I'm getting "Autoptimize cache size warning" emails. Looking at the code, I can see that the plugin is comparing the size to 536870912, which is 512MB, but the actual size is 266506240, which is only 254.16MB. Below is a capture from cPanel's Disk Usage page:

image

The autoptimize_stats transient is currently unset, so the plugin seems to be counting file sizes incorrectly.

There is no overriding code for any of the filters used by the plugin in my child theme or in the parent theme (Divi, if this makes any difference).

@futtta
Copy link
Owner

futtta commented Feb 12, 2024

And what size is being reported on the AO settings page @galbaras ?

@galbaras
Copy link
Author

571 files, totalling 465.70 MB (calculated at 18:00)

@futtta
Copy link
Owner

futtta commented Feb 12, 2024 via email

@galbaras
Copy link
Author

Looking at it right now, cPanel agrees with the plugin, which is weird. I'll keep an eye on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants