Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
gaitt
Experienced
Topic Author
Posts: 46
Joined: 21 Nov 2010, 12:48

What did the new "Folder Caching" feature exactly?

03 Aug 2011, 08:42

Hi guys,

I'm assuming my problem come from the new "Folder Caching" feature of 2.7!

In 2.5, i was using the "display text obove filemod" and the "align=over" features of filemod (fotoblinds) to manage galery news. Once a week, a shell script was automaticaly lunched to get the newest pictures added and then editing the "description" attribute of the folderdata.xml of the filemod folder.

When reloading my galery after the script execution, the new description was displaying correctly without the need of clearing browser cache.

Rigth now, with 2.7, even if i clear my browser cache, nothing shows, the description don't change at all.

So, finally my question, did the "Folder Caching" feature cache the name and description into SWF?
Hope my explanation is good enough!
Thx
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: What did the new "Folder Caching" feature exactly?

04 Aug 2011, 12:42

No, the folder-caching from Imagevue X2.7 is just a system native to the SWF that caches info for folders that are visited in that session so it doesn't need to get loaded when the visitor goes back and forth between folders. It is not cached in browser in any way, so refreshing the gallery will remove anything cached for that session.

So the problem must be related to something else, and we would need to see what your shell script is doing to the folderdata.xml ...
 
User avatar
gaitt
Experienced
Topic Author
Posts: 46
Joined: 21 Nov 2010, 12:48

Re: What did the new "Folder Caching" feature exactly?

10 Aug 2011, 12:50

My script is just searching for new pictures in the content folder! When it get some, the script change the description value of the folderdata.xml.

The value of description tag is something like this:
Code
Passer en mode plein écran en cliquant <a href="asfunction:_root.togglefullscreenfunc">ICI</a>.<br>Pour la version HTML du site c'est <a href="http://xxxxxxxxxxxxxxx/?/">ICI</a>.<br><br><b><a>Les derniers ajouts :</a></b><br>&#164;  <b><i>FOLDERWITHNEWS</i></b><br>     - FOLDERX - FOLDERXX - FOLDERXXX - LINKTOFOLDERXXX.<br>
And, has i said before, this method was working in 2.5 but no more in 2.7!

If i change the description with the admin panel and save it, it work well.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: What did the new "Folder Caching" feature exactly?

10 Aug 2011, 23:54

Sorry, but this I simply don't know ... Your script isn't inserting correctly? We changed and improved many things with the XML system, so I can't be sure as to why your insertion script is not working. I will get Nick to take a look and see if he has any suggestions ...

We would probably need your link, and access to see what your scripts are doing as well though ... Else, it is difficult to diagnose why it's not working.
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

Re: What did the new "Folder Caching" feature exactly?

21 Aug 2011, 07:09

I believe this is related to script not changing modification date in folder/file (which is big strange actually) so the caching system can't detect changes in this folder.

You can just delete content/folders.xml each time you change folderdata.xml to force cache rebuilding.
firedev.com