{"id":501,"date":"2025-02-12T02:41:27","date_gmt":"2025-02-11T18:41:27","guid":{"rendered":"https:\/\/virtualcardx.com\/?p=501"},"modified":"2025-12-30T14:34:38","modified_gmt":"2025-12-30T06:34:38","slug":"wordpress%e5%ae%89%e8%a3%85wp-super-cache%e6%8f%92%e4%bb%b6%e5%90%8e%e5%87%ba%e7%8e%b0%e6%97%a0%e6%b3%95%e6%9b%b4%e6%96%b0-wp-config-php%e9%97%ae%e9%a2%98%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/virtualcardx.com\/en\/2025\/02\/12\/wordpress\u5b89\u88c5wp-super-cache\u63d2\u4ef6\u540e\u51fa\u73b0\u65e0\u6cd5\u66f4\u65b0-wp-config-php\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6cd5\/","title":{"rendered":"WordPress installed WP Super Cache plugin appeared after the \"can not update wp-config.php\" problem solution"},"content":{"rendered":"<p>The WP Super Cache plugin in WordPress website may not work after installation, the specific steps to solve the problem are as follows:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Checking the cache file<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Go to the wp-content directory<\/strong>: Execute the command cd \/var\/www\/html\/wordpress\/wp-content.<\/li>\n\n\n\n<li><strong>Checking wp-cache-config.php<\/strong>: If it does not exist, copy . \/plugins\/wp-super-cache\/wp-cache-config-sample.php to wp-content\/ and name it wp-cache-config.php, i.e. execute cp plugins\/wp-super-cache\/wp-cache- config-sample.php . \/wp-cache-config.php.<\/li>\n\n\n\n<li><strong>Checking advanced-cache.php<\/strong>: If it doesn't exist, copy . \/plugins\/wp-super-cache\/advanced-cache.php to the wp-content\/ directory with the command cp plugins\/wp-super-cache\/advanced-cache.php . \/.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Add Configuration<\/strong><\/h3>\n\n\n\n<p>Go back to the WordPress root directory and add the following two lines before ABSPATH in the wp-config.php file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define('WP_CACHE', true);\ndefine('WPCACHEHOME','\/var\/www\/html\/wordpress\/wp-content\/plugins\/wp-super-cache\/');;<\/code><\/pre>\n\n\n\n<p>Save and revisit the backend. <\/p>\n\n\n\n<figure class=\"gb-block-image gb-block-image-39206b9e\"><img decoding=\"async\" width=\"900\" height=\"675\" class=\"gb-image gb-image-39206b9e lazyload\" data-src=\"http:\/\/virtualcardx.com\/wp-content\/uploads\/2025\/02\/wp-super-cache.jpg\" alt=\"\" title=\"wp-super-cache\" data-srcset=\"https:\/\/virtualcardx.com\/wp-content\/uploads\/2025\/02\/wp-super-cache.jpg 900w, https:\/\/virtualcardx.com\/wp-content\/uploads\/2025\/02\/wp-super-cache-300x225.jpg 300w, https:\/\/virtualcardx.com\/wp-content\/uploads\/2025\/02\/wp-super-cache-768x576.jpg 768w, https:\/\/virtualcardx.com\/wp-content\/uploads\/2025\/02\/wp-super-cache-600x450.jpg 600w\" data-sizes=\"(max-width: 900px) 100vw, 900px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 900px; --smush-placeholder-aspect-ratio: 900\/675;\"><\/figure>","protected":false},"excerpt":{"rendered":"<p>WordPress website in WP Sup ... <\/p>\n<p class=\"read-more-container\"><a title=\"WordPress installed WP Super Cache plugin appeared after the &quot;can not update wp-config.php&quot; problem solution\" class=\"read-more button\" href=\"https:\/\/virtualcardx.com\/en\/2025\/02\/12\/wordpress\u5b89\u88c5wp-super-cache\u63d2\u4ef6\u540e\u51fa\u73b0\u65e0\u6cd5\u66f4\u65b0-wp-config-php\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6cd5\/#more-501\" aria-label=\"Read more about WordPress installed WP Super Cache plugin after the &quot;can not update wp-config.php&quot; problem solution\">Read more<\/a><\/p>","protected":false},"author":1,"featured_media":511,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-501","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-facebook","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/posts\/501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/comments?post=501"}],"version-history":[{"count":4,"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/posts\/501\/revisions"}],"predecessor-version":[{"id":512,"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/posts\/501\/revisions\/512"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/media\/511"}],"wp:attachment":[{"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/media?parent=501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/categories?post=501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/tags?post=501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}