Ticket #30 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

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

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

Change History

Changed 3 years ago by adube

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

Changed 3 years ago by adube

  • owner set to adube
  • status changed from new to assigned

Changed 3 years ago by adube

Changed 3 years ago by adube

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

Please review.

Changed 3 years ago by adube

Changed 3 years ago by adube

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);

Changed 3 years ago by adube

  • status changed from assigned to closed
  • resolution set to fixed

r761, commited. No major issues reported.

Note: See TracTickets for help on using tickets.