Closed (fixed)
Project:
Boost
Version:
6.x-1.x-dev
Component:
Caching logic
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Jul 2009 at 23:59 UTC
Updated:
5 Aug 2009 at 03:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
mikeytown2 commentedI think disabling clean url's would be the easiest.
inside boost_boot()/boost_init(),
$GLOBALS['conf']['clean_url'] = FALSEif & only if $user->uid != 0.Comment #2
mikeytown2 commentedJust tested and kinda works except that with Image Assist image links return non-clean URL's for anonymous users & Administration menu returns Clean urls for logged in users. Hitting the "Clear cached data" button on the performance page made it work... except that Image Assist links are now incorrect for logged in users. Long story short this is incompatible with drupal's cache_menu & cache_filter tables from my 20 minutes of testing. It would be very useful for sites that never change their html since you could cache it in the browser for like 10 minutes instead of never like it does currently.
cache_clear_all(NULL, 'cache_menu');&cache_clear_all(NULL, 'cache_filter');Should be called on every page generation to ensure that only anonymous users get clean URLs and logged in users get non-clean URLs. This is only beneficial for a narrow range of sites... if you wish to run like that, be sure to remove this section from your .htaccess file.and apply this patch.
Comment #3
mikeytown2 commentedmight as well add a setting for this...
Comment #4
mikeytown2 commentedcommitted