[support] changing online/offline mode via db or settings.php doesn't work
Daniel Caillibaud
ml.dcailli at free.fr
Sun Nov 2 15:15:11 UTC 2008
Le 01/11/08 à 20:18, Michael Prasuhn <mike at mikeyp.net> a écrit :
> In settings.php the value you are looking for is
>
> $conf['site_offline'] = '1';
>
> 's:1:"1";' is a serialized value used to store PHP variables in a
> database column. It is basically short hand for, "a string whose
> length is 1 character(s), and contains the character 1."
Thanks, but it's not enough, because cache I guess.
> If you change this in the database, you'll also want to delete the
> cached variables array from the cache table. To do this simply delete
> the row where CID = 'variables.' For example, run:
>
> DELETE FROM cache WHERE cid = "variables";
>
> Drupal will rebuild this array and cache it again the next time a
> variable is requested.
>
> Hope this helps.
Yep, this helps, but I need
UPDATE variable SET value='s:1:"1";' WHERE name='site_offline';
TRUNCATE TABLE cache;
TRUNCATE TABLE cache_content;
TRUNCATE TABLE cache_page;
to really change the site status
Thanks
--
Daniel
More information about the support
mailing list