Commit 7871a351 authored by Mayoro Diagne's avatar Mayoro Diagne

using RAM cache was experimental and shoul never be commited

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36963 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 69e0b765
...@@ -432,7 +432,7 @@ class PDFTypeInformation(ERP5TypeInformation): ...@@ -432,7 +432,7 @@ class PDFTypeInformation(ERP5TypeInformation):
generateParsedScribus = CachingMethod(generateParsedScribus, generateParsedScribus = CachingMethod(generateParsedScribus,
('PDFTypeInformation_generateParsedScribus', ('PDFTypeInformation_generateParsedScribus',
md5.new(scribus_form.getData()).digest()), md5.new(scribus_form.getData()).digest()),
cache_factory='erp5_content_long') cache_factory='dms_cache_long')
return generateParsedScribus() return generateParsedScribus()
def getERP5Form(self): def getERP5Form(self):
...@@ -545,7 +545,7 @@ class PDFTypeInformation(ERP5TypeInformation): ...@@ -545,7 +545,7 @@ class PDFTypeInformation(ERP5TypeInformation):
#generateERP5Form = CachingMethod(generateERP5Form, #generateERP5Form = CachingMethod(generateERP5Form,
# ('PDFTypeInformation_generateERP5Form', # ('PDFTypeInformation_generateERP5Form',
# md5.new(self.getDefaultScribusFormValue().getData()).digest()), # md5.new(self.getDefaultScribusFormValue().getData()).digest()),
# cache_factory='erp5_ui_long') # cache_factory='dms_cache_long')
return generateERP5Form().__of__(self) return generateERP5Form().__of__(self)
# XXX criticize ERP5.Document.Image # XXX criticize ERP5.Document.Image
...@@ -595,7 +595,7 @@ class PDFTypeInformation(ERP5TypeInformation): ...@@ -595,7 +595,7 @@ class PDFTypeInformation(ERP5TypeInformation):
generateERP5FormCSS = CachingMethod(generateERP5FormCSS, generateERP5FormCSS = CachingMethod(generateERP5FormCSS,
('PDFTypeInformation_generateERP5FormCSS', ('PDFTypeInformation_generateERP5FormCSS',
md5.new(self.getDefaultScribusFormValue().getData()).digest()), md5.new(self.getDefaultScribusFormValue().getData()).digest()),
cache_factory='erp5_content_long') cache_factory='dms_cache_factory')
self.REQUEST.RESPONSE.setHeader('Content-Type', 'text/css') self.REQUEST.RESPONSE.setHeader('Content-Type', 'text/css')
return generateERP5FormCSS() return generateERP5FormCSS()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment