PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

why make wp-content writeable?

Quick Cache Plugin. Speeds up WordPress®.

why make wp-content writeable?

Postby shawnkhall » March 8th, 2011, 1:25 am

Why make the entire wp-content folder writeable - just for two files - that don't even need to be in that folder?

Instead, create the "/wp-content/advanced-cache.php" file with the following code:
Code: Select all
<?
  if (file_exists (WP_CONTENT_DIR . "/cache/advanced-cache.php")) include_once(WP_CONTENT_DIR . "/cache/advanced-cache.php");
?>


This then allows you to offset the configuration to the writable (cache) folder, without putting the entire wp-content folder at significantly increased risk.

Then everywhere you're checking if that file (or the WP_CONTENT_DIR) is writable, check the cache folder and for the advanced-cache.php file within it. This also applies for the qcache-salt-ok.php and I believe that only the following files required changes:
quick-cache/includes/classes/advanced-cache.inc.php
quick-cache/includes/classes/auto-cache.inc.php
quick-cache/includes/classes/menu-pages.inc.php
User avatar
shawnkhall
Registered User
Registered User
 
Posts: 2
Joined: March 8, 2011

Return to Quick Cache Plugin

Who is online

Users browsing this forum: No registered users and 0 guests

cron