[ansel] Bad performance and a lot of GET requests
Samuel Wolf
samuelwolf85 at googlemail.com
Wed Apr 11 17:39:26 UTC 2012
2012/4/11 Michael J Rubinsky <mrubinsk at horde.org>:
>
> Quoting Samuel Wolf <samuelwolf85 at googlemail.com>:
>
>> 2012/4/11 Michael J Rubinsky <mrubinsk at horde.org>:
>>>
>>>
>>> Quoting Samuel Wolf <samuelwolf85 at googlemail.com>:
>>>
>>>> 2012/4/11 Michael J Rubinsky <mrubinsk at horde.org>:
>>>>>
>>>>>
>>>>>
>>>>> Quoting Samuel Wolf <samuelwolf85 at googlemail.com>:
>>>>>
>>>>>> I upload ~ 13000 pictures in a lot of sub galleries.
>>>>>>
>>>>>> One gallery has 115 pictures, I can see 30 per page.
>>>>>> All preview pictures (30) of the first site visible but my apache
>>>>>> access log show a lot more GET requests.
>>>>>>
>>>>>> 10.23.1.88 - - [11/Apr/2012:17:42:40 +0200] "GET
>>>>>> /horde4/ansel/img/mini.php?ajaxui=1&image=5558&t=Thumb&b=none
>>>>>> HTTP/1.1" 200 7098
>>>>>>
>>>>>>
>>>>>>
>>>>>> "https://example.com/horde4/ansel/view.php?ajaxui=1&gallery=1&view=Gallery&havesearch=0&slug"
>>>>>> "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like
>>>>>> Gecko) Ubuntu/10.04 Chromium/17.0.963.79 Chrome/17.0.963.79
>>>>>> Safari/535.11"
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> This request is generating a "mini" preview icon - the really tiny
>>>>> (50x50?)
>>>>> previews. From a gallery page, this could be coming from a number of
>>>>> places;
>>>>> Off the top of my head - The geotag widget, the gallery tree widget, or
>>>>> the
>>>>> similar images widget.
>>>>
>>>>
>>>>
>>>> You're right, it is the gallery tree widget.
>>>> Is there a way to disable this complete?
>>>
>>>
>>>
>>> Edit ansel/config/styles.php
>>
>>
>> Is there an other way than comment out "'widgets' => $widgets," ?
>> I create a styles.local.php but the code must be wrong:
>> <?php
>> $widgets['Actions']['OtherGalleries'] = 'no';
>> $widgets['Actions']['Geotag'] = 'no';
>> $widgets['Actions']['Links'] = 'no';
>
>
> Or, since this is probably being done in *.local.php, you can try either
> unset()ing the widget's array entry, or setting it to false, not 'no'.
touch styles.local.php
<?php
$styles['ansel_default']['widgets'] = false;
Works fine for me, thank you very much.
Samuel
>
>
>
> --
> mike
>
> The Horde Project (www.horde.org)
> mrubinsk at horde.org
>
> --
> ansel mailing list - Join the hunt: http://horde.org/bounties/#ansel
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: ansel-unsubscribe at lists.horde.org
>
More information about the ansel
mailing list