Andrei Baicus
Forum Replies Created
-
Forum: Plugins
In reply to: [Super Page Cache] Fatal error 5.1.1@well666, we just released an update that should fix this issue. Please let me know if it works fine for you.
All the best!
Forum: Plugins
In reply to: [Super Page Cache] New Admin InterfaceHey @bobsled,
Thank you for the kind words!
When I check a page with Dev Tools it shows cf-cache-status HIT and x-wp-spc-disk-cache HIT. So both the Cloudflare cache and the disk cache are working just fine.
The
x-wp-spc-disk-cacheheader was probably cached on the firstHITfrom Cloudflare. We also don’t record each hit (the default sampling rate is 10% of all the requests), so that is why you might have a 0% hit rate – the miss was recorded, but no hits after that.But showing a zero hit rate is misleading. As you said, it should be for the disk cache, but this gets overridden if using the Cloudflare cache. Surely it should show one or the other?
I agree, and we just released an update that should handle this more gracefully. Instead of showing the disk cache hit rate in the metric box, if you have Cloudflare connected, and the token has Analytics read permissions, the box will now show the Cloudflare Percent Cached, which is the same metric shown in the Cloudflare dashboard.
I hope this makes things less frustrating!
Have a great day!
Forum: Plugins
In reply to: [Super Page Cache] Error: undefined can’t access property “innerText”…Hey @dccorp,
Thank you for the response!
Unfortunately, I couldn’t replicate the issue on my end.
Looking through the code, we are not using any call that directly calls
innerTextstraight onto adocument.getElementByIdcall, so this leads me to believe that the error might not be coming from Super Page Cache.This leads me to believe that there might be another event listener from a different plugin that gets attached to the admin bar button. If the cache purging doesn’t work, and the listener is indeed from another plugin, it might be preventing the functionality Super Page Cache attempts to run.
- Does the cache purge properly when the error is thrown?
- Does the error only display in the browser console, or it’s also visible on the frontend?
- Does purging the cache from the plugin dashboard works ok?
Thank you!
Forum: Plugins
In reply to: [Super Page Cache] Fatal error 5.1.1@well666 Thank you for letting us know and sorry for the inconvenience.
We’re looking into it and will release a fix soon.
Forum: Plugins
In reply to: [Super Page Cache] New Admin InterfaceThank you for the suggestion nonetheless! We will probably update this to explicitly state that it represents the disk cache in a future release.
Have a great day!
Forum: Plugins
In reply to: [Super Page Cache] New Admin InterfaceNo worries! I’m sorry if this was confusing.
The cache hit rate represents the disk cache hit rate, which is internal to the plugin representing the HTML statically cached on the server itself, not correspondent to the Cloudflare hit rate.
If the pages were already cached by Cloudflare, or only the initial request was recorded for the metrics (which was then cached by Cloudflare), it would show a0%/n/ahit rate.
So things are probably working just fine.
Let me know if there’s anything else I can help with!Forum: Plugins
In reply to: [Super Page Cache] New Admin InterfaceThe option has been removed from the plugin as the cache buster parameter is not needed by the plugin in the latest versions. In short, if you had a set-up that already had it disabled, the option will not show up anymore (the cache buster is removed by default now for new users & users that already had it removed).
You can read my explanation which is a bit more detailed on how the plugin changed here: https://wordpress.org/support/topic/new-enable-cloudflare-cdn-caching-option/#post-18555653https://gist.github.com/isaumya/af10e4855ac83156cc210b7148135fa2
I’m using this cache rule set up on my sites, but I don’t see any option in the new version or in the help topics. (I think the Remove Cache Buster Query Parameter option was also missing in recent plugin updates.)
This guide is outdated, as the plugin itself has since migrated to using a Cache Rule which effectively does what that guide mentions automatically.
I hope this helps!
Have a great day!
Forum: Plugins
In reply to: [Super Page Cache] New “Enable Cloudflare CDN & Caching” optionThose are all great points. Thank you for letting me know. We will update the readme in the next few days.
On the “Cloudflare” plugin section, the “Cloudflare Setup Guide” is a dead link.
The documentation link should work fine now.
We will have the other suggestions in mind for the next release.
Have a great day!
Forum: Plugins
In reply to: [Super Page Cache] New Admin InterfaceHello @bobsled,
We’ve added back the cached pages listing page in the latest release (v5.1.1). It will show up when the Advanced > Purge HTML pages only option is enabled.
You can find the button to show the list on the Cached Objects metrics card inside the plugin’s Dashboard page.
Have a great day!
- This reply was modified 10 months, 1 week ago by Andrei Baicus.
Forum: Plugins
In reply to: [Super Page Cache] New “Enable Cloudflare CDN & Caching” optionHello @masvil,
Thank you for reaching out and sorry for the confusion.
If you are coming from an older version of the plugin, a few versions ago (v4.7.11 – released in July 2024) we moved away from the old caching mechanism which was using Page Rules. In the previous versions we accounted for the old rule when rendering the switch, so it was showing as enabled. We also deprecated the Cloudflare Workers integration the plugin previously supported.
The setup you had should still work fine in both cases, but we removed both functionalities in favor of Cache Rules which are more robust and give better control overall. We also don’t account for them in the UI anymore.
If you are not sure which one you were previously using, you can check on the Cloudflare Dashboard, under
Rules > Page RulesorWorker Routes.That being said, if you were previously using a Page Rules, when you enable the toggle and update the settings, the site should migrate to the Cache Rules automatically. If you were previously using Cloudflare Workers, things will continue working fine, but we don’t migrate that setup.
I hope this helps!
Forum: Plugins
In reply to: [Super Page Cache] Unexpected token ‘<', "<!DOCTYPE "… is not valid JSONHello @luislu,
Thank you for reporting this issue. The “Unexpected token ‘<‘” error typically indicates that the server is returning an HTML page (likely an error page) instead of the expected JSON response when saving settings.
To help diagnose this, could you please:
1. Check the actual server response:
- Open your browser’s Developer Tools (F12)
- Go to the Network tab
- Click “Update Settings” to reproduce the error
- Look for the request that failed (likely
update, calling thewp-json/spc/v1/settings/updateroute) - Click on that request and share the contents of the Response tab
2. Enable WordPress debug logging:
- Add these lines to your
wp-config.phpfile:
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);- Try updating settings again
- Check
/wp-content/debug.logfor any PHP errors and share them with us
I hope this helps!
Thank you!
Forum: Plugins
In reply to: [Super Page Cache] Error: undefined can’t access property “innerText”…Hello @dccorp,
I’m sorry you’re experiencing issues with the new version. To help troubleshoot this cache clearing error, could you please provide a few more details:
Does this error show up on the frontend, the dashboard, or both? Could you share which script throws this error?
If this is coming from
backend.min.jsfrom Super Page Cache when logged in and purging cache from the admin toolbar, it might be because a cached version of the script might be loaded when logged in.If you have multiple caching plugins, can you please make sure that you purge the cache for all of them, and also ensure that you clear the browser cache (or try purging cache in an incognito window)? This should help determine if it’s a cache conflict issue.
Let me know if any of the above helps. Thank you!Forum: Plugins
In reply to: [Super Page Cache] Critical error after updating to Super Page Cache ProOh, sorry for that, @ezral54! Indeed, the address of the plugin page has been changed in this version.
I’m sorry for the confusion! Glad we sorted it out! Let us know if you encounter any errors, or need any help!Have a great day!
Forum: Plugins
In reply to: [Super Page Cache] Critical error after updating to Super Page Cache ProHello @ezral54,
I’m sorry you have experienced issues with the latest version. Would you be so kind to share more details about the error? If you’re using the Pro version, you can contact us directly.
I’ll need some additional technical details about the error you’re experiencing. Could you please follow these steps to gather more information:
- Enable WordPress Debug Mode Add these lines to your
wp-config.phpfile (before the “That’s all, stop editing!” comment):
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);- Go to your WordPress admin area & click on Super Page Cache in the menu to trigger the error again.
- The complete error message and call stack from
/wp-content/debug.log. If no debug.log file exists, check your hosting provider’s error logs. You can also share with us a screenshot of any error message shown on screen if any.
The most important part is the complete error trace showing file paths and line numbers – this will help me pinpoint exactly what’s causing the issue.
Once we have these details, we can quickly identify the issue and provide a proper fix.
Thanks for your patience, and sorry again for the issue!
- This reply was modified 10 months, 1 week ago by Andrei Baicus.
Forum: Plugins
In reply to: [Super Page Cache] nginx only setupHello @snowdragon97,
Thank you for reporting this issue and sorry for the late reply! We’re going to fix it in an upcoming release soon. Sorry for the inconvenience!
Have a great day!