Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #6314 (reopened)

Opened 13 years ago

Last modified 13 years ago

Webgateway cache - default location

Reported by: wmoore Owned by: wmoore
Priority: critical Milestone: Unscheduled
Component: Configuration Version: n.a.
Keywords: n.a. Cc: python-team@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.


Need to have the webgateway cache turned on by default, instead of requiring users to specify a location.

Anyone got any good ideas for default location?!

I think the path does support relative paths, and directories are created if they don't exist.

Change History (6)

comment:1 Changed 13 years ago by jmoore

I would think a new directory under "var/" would be fine, Will. On Linux, applications create a subdirectory under "var/cache", so perhaps var/cache/webgateway ?

comment:2 Changed 13 years ago by wmoore

This is a relative path, right?
So the cache is in dist/lib/python/omeroweb/var/cache/webgateway ?

comment:3 Changed 13 years ago by jmoore

No server should write anywhere other than under OMERO_HOME/var/ (in this case dist/var). The web services start under lib/python/omeroweb due to:

    def start(self, args):
        import omeroweb.settings as settings
        link = ("%s:%s" % (settings.APPLICATION_SERVER_HOST,
        location = self.ctx.dir / "lib" / "python" / "omeroweb"

So the logging code will need to go up 3 directories to self.ctx.dir and then down to var/cache/webgateway or if that's to be defined in OmeroPy/src/omero/plugins/web.py somehow:

self.ctx.dir / "var" / "cache" / "webgateway"

comment:4 Changed 13 years ago by Will Moore <will@…>

  • Remaining Time changed from 0.25 to 0
  • Resolution set to fixed
  • Status changed from new to closed

(In [f3d26c29918f9cfe1e1b5c91e151efc71f873dc2/ome.git] on branch develop) Default webgateway cache is now 'OMERO_HOME/var/cache/webgateway/'. Closes #6314

comment:5 Changed 13 years ago by atarkowska

  • Milestone changed from OMERO-Beta4.3.2 to Unscheduled
  • Priority changed from major to critical
  • Remaining Time 0 deleted
  • Resolution fixed deleted
  • Status changed from closed to reopened

Unfortunately we are not able to provide omeroweb caching by default because WebGatewayCache? class is only working on unix machines. This ticket will become a story and needs to be reviewed in the nearest future

comment:6 Changed 13 years ago by Aleksandra Tarkowska <atarkowska@…>

(In [7c7c694ac429ababe1ebb05305482865768cda08/ome.git] on branch develop) Revert "Default webgateway cache is now 'OMERO_HOME/var/cache/webgateway/', see #6314"

This reverts commit f3d26c29918f9cfe1e1b5c91e151efc71f873dc2.

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.67125 sec.)

We're Hiring!