Community Support Forums — WordPress® ( Users Helping Users ) — 2011-03-08T01:25:06-05:00 http://www.primothemes.com/forums/feed.php?f=5&t=2624 2011-03-08T01:25:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2624&p=7503#p7503 <![CDATA[why make wp-content writeable?]]>
Instead, create the "/wp-content/advanced-cache.php" file with the following code:
Code:
<?
  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

Statistics: Posted by shawnkhall — March 8th, 2011, 1:25 am


]]>