plugin parameter change not detected unless I clear the database cache

clemitt

Joined: 2009-03-11
Posts: 1
Posted: Wed, 2009-03-11 03:44

Hi,

Firstly, this is my first time on the forum, even though I have been using gallery2 now for a few years, and I just want to congratulate you on a great product.

I've developed a voting module (similar to the polling module on Gallery1). I'm just having a problem with my plugin parameters. I have two plugin parameters which determine which stage of voting we are in (these are set within "Edit Album > Album tab" and this all works fine).

However, I have a couple of callbacks / blocks that get these plugin parameters, and the only way I can get the changed values to be picked up by the blocks is by clearing the database cache via the site admin > maintenance menu.

Any ideas, is there something I should be doing in the code to make sure it always gets the real value (I assume it is picking up a cached value from somewhere).

Note: when I work on my development pc (xampp on windows) I have no problem changing the values. Its only when I run it on the test site that I hit this issue - performance acceleration is definitely turned off as I had a similar issue with this previously.

System info:
Gallery URL = http://www.passionforpixels.com/gallery2/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6 apache2handler
Webserver = Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqlt 5.0.51a-community, lock.system=flock
Toolkits = Exif, ImageMagick
Acceleration = none/0, none/0
Operating system = Linux server1.flashram.com.au 2.6.9-78.0.8.ELsmp #1 SMP Wed Nov 19 20:05:04 EST 2008 i686
Default theme = passion
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
Rows in GalleryAccessMap table = 8873
Rows in GalleryAccessSubscriberMap table = 16942
Rows in GalleryUser table = 1490
Rows in GalleryItem table = 16942
Rows in GalleryAlbumItem table = 445
Rows in GalleryCacheMap table = 0