cancel
Showing results for 
Search instead for 
Did you mean: 

Caching data and meta data properties causing huge problem?

kishore
Champ in-the-making
Champ in-the-making
Hi All,

        I have a javascript file in scripts space and set a rule on a space to call that java script file on the incoming files so that i can apply dynamically permissions for a particular group or user.Everything went fine but the whenever my code as part of another rule updates this javascript file dynamically, afresco not recognizing those changes and eventually i have to restart the server each time for the effect to take place.

        I think alfresco caching data,files at the time of server startup.

How can i avoid or tell alfresco that not 2 cach anything?I am struggling with problem last couple of months and not found anything.

      Please can anybody suggest in this regard and guide me.

Thanks
kishore
1 REPLY 1

kevinr
Star Contributor
Star Contributor
Hello,

As far as i know there is no caching of JavaScript files. The script engine loads the text to execute as JavaScript directly from a ContentReader for the node that represents the script. I assume you are not loading scripts from the classpath as the application container may cache items loaded from the classpath.

Can you check a few things for me:
. If you change the javascript file by simply editing it in Alfresco does the content get updated?
. If you view the content of the dynamically modified script file, has the content been changed successfully by the rule?

Sorry if these seem like obvious questions but i'm really not sure what the problem is causing the issue.

Thanks,

Kevin