q120000
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Super Cache] Exclude from cache using URL StringsWell, well… I uninstalled WPSC, removed any reference on the server of it that I could find, reinstalled and activated, set up as I had before – especially those pages I did not want cached, and it works.
Ran debug (the stock debug) and lo and behold, I get this for the “Contact” page: /contact/ URI rejected. Not Caching
Sorry for putting through a rabbit-hole, but I do really appreciate your help and sticking with me. Thank You.Forum: Plugins
In reply to: [WP Super Cache] Exclude from cache using URL StringsEdited file with code you emailed me. “Script” is not in the debug file.
I’m beginning to think the WPSC plugin is corrupted. I’m running another site on the same server with the same theme and WPSC works.
Forum: Plugins
In reply to: [WP Super Cache] Exclude from cache using URL StringsNot a problem. Sent to the fastmail address.
Forum: Plugins
In reply to: [WP Super Cache] Exclude from cache using URL StringsSent link to files. I checked the server error log – it was empty, no errors. Not sure if this is relevant.
Forum: Plugins
In reply to: [WP Super Cache] Exclude from cache using URL StringsEntered the code, now the debug log has “/contact/” listed 33 times. Note: I deleted the contact page from the cache and deleted the previous debug log. So the 33 entries are all new.
“reject list is empty” is not in the log. Contact page still being cached. I am using a different browser to access the Contact page so as not to be considered a logged in user.I agree, this is really odd. I do not think the debug log is going to identify why the page continues to be cached. On another note, on a different website using the same theme and WPSC, with a “Contact” page, that I have set to NOT cache, and it does not cache as expected, I ran the debug script (the original script that comes with WPSC), and I get this line in the debug log: “/contact/ URI rejected. Not Caching”. So that site operates correctly and its debug log confirms it.
Forum: Plugins
In reply to: [WP Super Cache] Exclude from cache using URL StringsNote: I deleted from cache the “contact” page, then ran the debug.
The letters “URI” and “reject” are not even in the debug log.
/contact/ is in the log eleven times.
Here is one part that is in the log: /contact/ ACCEPT: text/html
So, if I am reading this right, the “contact” page is not being rejected, thus it is getting cached.Forum: Plugins
In reply to: [WP Super Cache] Exclude from cache using URL StringsPlease forgive the lateness of my reply.
Ok, I added the code given, deleted the cached “contact” page, got the debug file, and I’m not sure what I am reading.How can I send you the debug file?
Forum: Plugins
In reply to: [WP Super Cache] Exclude from cache using URL StringsWould it be possible to send me an edited file, “wp-cache-phase2.php”, for version 1.10.0 that will have the necessary recommended code?
Forum: Plugins
In reply to: [WP Super Cache] Exclude from cache using URL StringsLine 1833 does not have foreach ( $cache_rejected_uri as $expr ) {
I’m using the latest version: Version 1.10.0
1829 } 1830 if ( false == is_array( $cache_rejected_uri ) ) { 1831 return false; 1832 } 1833 foreach ( $cache_rejected_uri as $expr ){ 1834 if ( $expr != '' && @preg_match( "~$expr~", $uri ) ) { 1835 return true; 1836 } 1837 } 1838 return false; 1839 }
Forum: Plugins
In reply to: [WP Super Cache] Exclude from cache using URL Strings“error_log() statements to
wp_cache_is_rejected
in wp-cache-phase2.php to dump $url and $cache_rejected_uri to your php_error”This is a bit above may pay grade – not sure where within the files to place the statements.
Forum: Plugins
In reply to: [WP Super Cache] Exclude from cache using URL Strings“Did you clear the cache for those pages after you added them to the “rejected URI” list?” Yes. I confirmed that deleting the cache using Supercache does delete its content from the server. I verified that using FTP. It deletes individual pages I select as well as the entire cache when deleting all.
I have been deleting the said pages from Supercache, testing, and repeating with different settings (ie; with slash, without slash, etc.). So the stamp date would be more recent than when I first posted this thread.
The site is using Nginx, but I have turned that off in cPanel. I purged its entire cache before turning it off and before installing Supercache.
I cleared the cache ran debug and the resulting log I did not, “see any warnings the URL is rejected” – however, that being said, I’m not sure how to read the log.
Forum: Plugins
In reply to: [WP Super Cache] Exclude from cache using URL StringsTried removing the trailing slash (/), no change.
Interesting that the browser URL’s have the trailing slash, but in Super Cache > Contents > Fresh WP-Super-Cached Files, the listed links do not have the trailing slash.
Forum: Plugins
In reply to: [WP Super Cache] Exclude from cache using URL StringsI use Firefox as my default browser, and use Safari for checking. And the results are the same.
All links on the site end with a slash, “/”, except for the Home page.
Rejected URL Strings:
wp-.*.php
index.php
/contact/
/suggest-a-website/
/news-feeds/
/news-feeds/other-news-feeds/Website: https://thewyoming.net/
FYI: In all my sites I move wp-config.php up one directory, that is, one level above public_html for security reasons. WordPress by default not finding wp-config.php in its home directory will look for it one level up. This mitigates hackers access to the configuration file.
Forum: Plugins
In reply to: [DarkLooks - Dark Mode Switcher For WordPress] Stuck in dark modeOS mode is off.
@themelooks https://thewyoming.net/
If see the site as normal, refresh the page and you get the dark mode.
- This reply was modified 2 years, 5 months ago by q120000.