Make WordPress Core

Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#2288 closed defect (bug) (fixed)

Reenable cache for safe_mode hosts

Reported by: Juergen Owned by:
Priority: normal Milestone:
Component: General Version: 2.0
Severity: normal Keywords:
Cc: Focuses:

Description

Changeset 3436 disabled the cache when safe_mode is enabled. Why? It seems to work fine with a proper setup (manually created cache dir, proper dir permissions and safe_mode settings).

Attachments (1)

2288.diff​ (546 bytes ) - added by davidhouse 21 years ago.

Download all attachments as: .zip

Change History (7)

#1 @davidhouse
21 years ago

  • Keywords bg|2nd-opinion bg|dev-feedback added

Agreed, there shouldn't be a blanket condition there. Could we change

if (ini_get('safe_mode')) 

to

if (ini_get('safe_mode') && get_option('safe_mode_no_cache'))

Then people with safe mode, who knew what they were doing, could just pop over to wp-admin/options.php (we wouldn't display this option by default in the admin) and change it to true?

#2 @ryan
21 years ago

We could have ENABLE_CACHE be a force-enable flag that skips the safe_mode check.

#3 @ryan
21 years ago

BTW, you can't use get_option() in the cache because the cache is loaded and initialized before everything except $wpdb.

#4 @davidhouse
21 years ago

  • Keywords bg|has-patch added

Thanks for that info. Patch attached.

#5 @markjaquith
21 years ago

  • Keywords bg|2nd-opinion bg|dev-feedback bg|has-patch removed
  • Milestone → 2.0.1
  • Resolution → fixed
  • Status new → closed

Fixed by [3462]

define('ENABLE_CACHE', true'); // put this in wp-config.php to force the cache to be on

#6 @(none)
20 years ago

  • Milestone 2.0.1

Milestone 2.0.1 deleted

Note: See TracTickets for help on using tickets.