Opened 15 years ago

Closed 15 years ago

#30 closed enhancement (fixed)

Proxy caching

Reported by: adube Owned by: adube
Priority: minor Milestone:
Component: server Version: 1.0
Keywords: cache, proxy Cc: adube@…

Description

need

To be able to keep on client-side the images returned by TileCache services

currently

The content outputed by the proxy has no caching support.

proposed

A new boolean parameter "$m_boolCacheEnabled" set to false by default.

Instead of having the option in the TileCache proxy only, we could have it on the others as well, so that in the future we could be to cache other kinds of services outputs.

Attachments (2)

patch-GeoPrisma-30-r742-A0.diff (33.2 KB ) - added by adube 15 years ago.
patch-GeoPrisma-30-r743-A1.diff (35.8 KB ) - added by adube 15 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by adube, 15 years ago

"it on the others as well" --> I mean directly in !Proxy.php instead.

comment:2 by adube, 15 years ago

Owner: set to adube
Status: newassigned

by adube, 15 years ago

comment:3 by adube, 15 years ago

Patch pass php sniffer with 0 errors. Patch also include a new sample which demonstrate how to use it.

Please review.

by adube, 15 years ago

comment:4 by adube, 15 years ago

New patch that allows the proxy caching per type, i.e. TileCache and WMS.

Please review.

Sample of use in common.php :

//----------------------------
// Proxy caching configuration
//----------------------------

// set TileCache proxy caching only
org_geoprisma_SettingImpl::setTileCacheProxyCaching(true);
org_geoprisma_SettingImpl::setTileCacheProxyCachingExpires(2419200);

// set WMS proxy caching only
org_geoprisma_SettingImpl::setWMSProxyCaching(true);
org_geoprisma_SettingImpl::setWMSProxyCachingExpires(2419200);

// set ALL proxy caching
org_geoprisma_SettingImpl::setProxyCaching(true);
org_geoprisma_SettingImpl::setProxyCachingExpires(2419200);

comment:5 by adube, 15 years ago

Resolution: fixed
Status: assignedclosed

r761, commited. No major issues reported.

Note: See TracTickets for help on using tickets.