René
Forum Replies Created
-
Forum: Plugins
In reply to: [Cache Enabler] updating a post does not clear homepage cachefunnily enough, home cache is deleted when I do a cpt update 😄
Forum: Plugins
In reply to: [Cache Enabler] updating a post does not clear homepage cachei have now added this function temporarily with Cache_Enabler::clear_page_cache_by_url( get_home_url() ); added should work, right?
Forum: Plugins
In reply to: [Cache Enabler] updating a post does not clear homepage cachei have the standard homepage of wordpress, which displays the posts chronologically, with hook (pre_get_posts) you can find posts and certain CPT chronologically. with 1.5 the home page is generally not emptied anymore as i just noticed. so my new posts do not appear on home anymore. :-/
Forum: Plugins
In reply to: [Cache Enabler] updating a post does not clear homepage cacheThe standard page, which also displays the cpt chronologically
Forum: Plugins
In reply to: [Cache Enabler] updating a post does not clear homepage cacheWhen I update a post (custom post type), the homepage cache is not cleared. Shouldn’t that happen now?
Forum: Plugins
In reply to: [Cache Enabler] updating a post does not clear homepage cachethanks. that helps me a lot.
is there a way to define multiple urls in this function?
- This reply was modified 5 years, 10 months ago by René.
Forum: Plugins
In reply to: [Cache Enabler] updating a post does not clear homepage cachecould i use this way to solve my problem that when publishing new posts the pagination is also deleted instead of just the home page?
function clear_home_page_cache_on_save_post() { if ( class_exists( 'Cache_Enabler' ) ) { Cache_Enabler::clear_page_cache_by_url( 'https://www.site.com/page/*' ); } } add_action( 'publish_post', 'clear_home_page_cache_on_save_post' );does a * work as placeholder in this case?
Forum: Plugins
In reply to: [Cache Enabler] Site much slower after last updatesame problem. server load is 100% up. :-/
Forum: Plugins
In reply to: [Cache Enabler] Wrong nginx recommendations in docsThanks. I only use https. It seems to be working. The cache handler wp is no longer present and the cached page is delivered.
Forum: Plugins
In reply to: [Cache Enabler] Wrong nginx recommendations in docsThanks. I’ll try that! double https is correct?
https-https-index.html.gz
Forum: Plugins
In reply to: [Cache Enabler] Wrong nginx recommendations in docsI have 50% more server load since the update to 1.4.x. I was already wondering. It’s not nice that this adjustment has been done without notice. :-/
Forum: Plugins
In reply to: [Cache Enabler] Wrong nginx recommendations in docsI have added the following code. I’m not sure where the change will affect.
# BEGIN Cache Enabler <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / # set blog sub path SetEnvIf Request_URI "^(.*)$" SUB_PATH=/wp-content/cache/cache-enabler/ # set Cache Enabler path SetEnvIf Request_URI "^(.*)$" CE_PATH=$1 SetEnvIf Request_URI "^(/)index.php$" CE_PATH=$1 <IfModule mod_mime.c> # gzip HTML file RewriteCond %{ENV:CE_PATH} /$ RewriteCond %{ENV:CE_PATH} !^/wp-admin/.* RewriteCond %{REQUEST_METHOD} !=POST RewriteCond %{QUERY_STRING} ="" RewriteCond %{HTTP_COOKIE} !(wp-postpass|wordpress_logged_in|comment_author)_ RewriteCond %{HTTP:Accept-Encoding} gzip RewriteCond %{DOCUMENT_ROOT}%{ENV:SUB_PATH}%{HTTP_HOST}%{ENV:CE_PATH}index.html.gz -f RewriteRule ^(.*) %{ENV:SUB_PATH}%{HTTP_HOST}%{ENV:CE_PATH}index.html.gz [L] AddType text/html .gz AddEncoding gzip .gz </IfModule> # default HTML file RewriteCond %{ENV:CE_PATH} /$ RewriteCond %{ENV:CE_PATH} !^/wp-admin/.* RewriteCond %{REQUEST_METHOD} !=POST RewriteCond %{QUERY_STRING} ="" RewriteCond %{HTTP_COOKIE} !(wp-postpass|wordpress_logged_in|comment_author)_ RewriteCond %{DOCUMENT_ROOT}%{ENV:SUB_PATH}%{HTTP_HOST}%{ENV:CE_PATH}index.html -f RewriteRule ^(.*) %{ENV:SUB_PATH}%{HTTP_HOST}%{ENV:CE_PATH}index.html [L] # wp override RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [END] </IfModule> # END Cache EnablerForum: Plugins
In reply to: [Cache Enabler] Wrong nginx recommendations in docsThanks. I don’t know exactly where to make this adjustment?
Forum: Plugins
In reply to: [Cache Enabler] Wrong nginx recommendations in docsThis is very bad. The server load is higher as a result. How can it be fixed?
Forum: Plugins
In reply to: [Cache Enabler] Wrong nginx recommendations in docsI’m a little confused. do i have to modify the apache snippet if i use version 1.4.x?