Search found 41 matches

by FishNiX
Fri Aug 07, 2020 4:02 pm
Forum: Development
Topic: addSelect images in Admin module/serendipity_traversePath slowness
Replies: 10
Views: 16472

Re: addSelect images in Admin module/serendipity_traversePath slowness

Sounds good thanks. I've enabled the cache for our site. I'll monitor to make sure everything is good. I do vaguely remember some issue with a plugin or other functionality back when it was first added. Once the cache stuff is merged/released, I'll try to find some free cycles to look at that direct...
by FishNiX
Sat Aug 01, 2020 1:07 pm
Forum: Development
Topic: addSelect images in Admin module/serendipity_traversePath slowness
Replies: 10
Views: 16472

Re: addSelect images in Admin module/serendipity_traversePath slowness

Nice :) Now just the question remains whethere the occasional long loading time is acceptable for your editors. If not we have to think about a different approach to creating that file list - taking it from the database should be way faster for example, and we already have the data in the database,...
by FishNiX
Fri Jul 31, 2020 10:08 pm
Forum: Development
Topic: addSelect images in Admin module/serendipity_traversePath slowness
Replies: 10
Views: 16472

Re: addSelect images in Admin module/serendipity_traversePath slowness

Ah-ha! Yes, caching was disabled. With your changes and the media pages cached, the response is much better. The second load of the media library (from the left panel of the admin) only took 5.2 seconds. Clicking the "Media" button in a new entry after the cache has been populated took abo...
by FishNiX
Fri Jul 31, 2020 6:18 pm
Forum: Development
Topic: addSelect images in Admin module/serendipity_traversePath slowness
Replies: 10
Views: 16472

Re: addSelect images in Admin module/serendipity_traversePath slowness

I'm not sure if it's possible, but if there was a hook in the addSelect function (and maybe the next one thats slow after we make this faster.... :lol: ) I could do my own caching of the folder list. Of course, it might be more beneficial to serendipity as a platform to allow a hook in the traverseP...
by FishNiX
Fri Jul 31, 2020 6:10 pm
Forum: Development
Topic: addSelect images in Admin module/serendipity_traversePath slowness
Replies: 10
Views: 16472

Re: addSelect images in Admin module/serendipity_traversePath slowness

Hi onli - Thank you for your reply and your work on the platform! I've replaced my functions_images.inc.php with your modified version but I don't see a difference (it takes about 51s to load the media library). I don't see any content in the database cache... should this show in the filesystem cach...
by FishNiX
Fri Jul 31, 2020 2:12 pm
Forum: Development
Topic: addSelect images in Admin module/serendipity_traversePath slowness
Replies: 10
Views: 16472

addSelect images in Admin module/serendipity_traversePath slowness

Good morning! We have been happy s9y users for a long while now and we have a fairly large uploads directory with many subdirs. The content editors are having a hard time adding and selecting media because it takes so long when you click the "Media" button in a "New Entry" and al...
by FishNiX
Thu Apr 23, 2015 4:20 am
Forum: Installation
Topic: Upgrade 1.7.8 to 2.0.0 or 2.0.1 - plugin migration
Replies: 2
Views: 4403

Re: Upgrade 1.7.8 to 2.0.0 or 2.0.1 - plugin migration

OK I think I know the issue - I'm using a capastrano style deployment with the chef deploy resource (https://docs.chef.io/resource_deploy.html) and my plugins directory is not included in the release, its one of my 'shared' directories, so these plugins are not getting created when the git fetch hap...
by FishNiX
Tue Apr 21, 2015 2:15 pm
Forum: Installation
Topic: Upgrade 1.7.8 to 2.0.0 or 2.0.1 - plugin migration
Replies: 2
Views: 4403

Upgrade 1.7.8 to 2.0.0 or 2.0.1 - plugin migration

Hi! We are running 1.7.8 with a lot of html_nuggets, we also use the category plugin. In 1.7.8 these were built-in, but they all break after moving to 2.0.x (missing). Is this expected? Do we have to recreate all of those nuggets?
Thanks!
by FishNiX
Sat Aug 30, 2014 12:23 am
Forum: Plugins
Topic: Setting default for new config options in plugin
Replies: 2
Views: 4016

Setting default for new config options in plugin

@onli -

You mentioned I should specify the default here

Code: Select all

$this->get_config('display_helper', true)
I've made a change to the s9ymarkup plugin, can you tell me where I should do that?

https://github.com/fishnix/Serendipity/ ... kup_option

Thanks!
:mrgreen:
by FishNiX
Sun Jan 20, 2013 3:25 am
Forum: Plugins
Topic: Overriding commentInfo['ip']?
Replies: 2
Views: 3575

Re: Overriding commentInfo['ip']?

I didn't know I could do that. I'll give it a shot.

Thanks as always!
-c
by FishNiX
Sun Jan 20, 2013 12:17 am
Forum: Plugins
Topic: Overriding commentInfo['ip']?
Replies: 2
Views: 3575

Overriding commentInfo['ip']?

Hey all - I'm trying to write in support for X-Forwarded-For without hacking core functions. I've been trying to work with the frontend_saveComment event hook. It looks like eventData and addData come through with some information about the comment, but setting eventData['ip'] = getenv('HTTP_X_FORWA...
by FishNiX
Sun Jan 20, 2013 12:10 am
Forum: Plugins
Topic: Spam Protector not detecting X-Forwarded-For
Replies: 2
Views: 4122

Re: Spam Protector not detecting X-Forwarded-For

That worked - I had to make sure each instance looked for HTTP_X_FORWARDED_FOR first. 645c645,646 < 'user_ip' => $_SERVER['REMOTE_ADDR'] != getenv('SERVER_ADDR') ? $_SERVER['REMOTE_ADDR'] : getenv('HTTP_X_FORWARDED_FOR'), --- > #'user_ip' => $_SERVER['REMOTE_ADDR'] != getenv('SERVER_ADDR') ? $_SERVE...
by FishNiX
Wed Sep 05, 2012 1:12 am
Forum: Plugins
Topic: Spam Protector not detecting X-Forwarded-For
Replies: 2
Views: 4122

Spam Protector not detecting X-Forwarded-For

I have a varnish cache in front of S9Y. It's is inserting X-Forwarded-For headers. Apache sees these headers fine and logs them with a combination of LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy SetEnvIf X-For...
by FishNiX
Wed Apr 25, 2012 3:44 am
Forum: Development
Topic: Vending stuff from entryproperties cache with memcache plugi
Replies: 1
Views: 3277

Vending stuff from entryproperties cache with memcache plugi

So I know this has been talked about a few times, but it keeps coming back in my mind that this *should* work. Of course I haven't made it work yet, so... :) I have a read heavy site with basically _all_ unauthenticated users. I'm OK with losing some dynamic-ness as well. I am planning to drop varni...
by FishNiX
Thu Mar 22, 2012 2:00 pm
Forum: Installation
Topic: Error running in AWS Elastic Beanstalk
Replies: 5
Views: 7122

Re: Error running in AWS Elastic Beanstalk

Yes, understood that it's not an s9y bug (now). This was also my first use of php 5.3, and googling around for php 5.3 + session problems shows some information that sessions are deprecated in 5.3. I thought perhaps it was an issue there (which is why I also tried the 1.7alpha code). I guess this is...