Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Set cache at page or paragraph level

Set cache at page or paragraph level

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Guys,

How do I set up cache at page or paragraph level in DW9?

I remember in DW we used to have a cache property on the page.

Is that setting gone?

I believe it had some good use since some pages are more sensitive than others.

Thanks,
Adrian


Replies

 
Nicolai Pedersen
Reply

That setting is gone and deprecated. It did not do anything for pages using layouts anyway.

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Understood. Are there any other settings for controlling the cache time for pages or paragraphs?

Thanks,

Adrian

 
Nicolai Pedersen
Reply

Hi Adrian

Nope - pages (data of pages) are cached until changed. The rendering is not cached. Paragraphs are not cached at all, and never was on DW8.

Before layouts, you could cache the output of text based paragraphs - or output of the entire page. The caching of the entire page often does not makes sense because too much is dynamic.

BR Nicolai

 
Jens Mouritzen
Jens Mouritzen
Reply

Hi guys
We might have some cache issues as well.
We would like to delete all "Unpublished" paragraphs. We ran this SQL query in firehose:


DELETE Paragraph WHERE ParagraphShowParagraph = 'false'

and this also

DELETE Paragraph WHERE ParagraphShowParagraph = 0

 

None og them deletes the unpublished paragraphs on the pages (but it looks like it did in the database). So, could this be because of cache issues?  We have tried to add a new paragraph and delete it again to refresh the cache.

2019-02-20_22_27_56-Dynamicweb_Admin_–_Google_Chrome.png
 
Nicolai Pedersen
Reply

Hi Jens

It seems it requires a iisreset to clear the cache for paragraphs...

BR Nicolai

 
Jens Mouritzen
Jens Mouritzen
Reply

Okay, and this can only be done manually and not from the admin right?

 
Nicolai Pedersen
Reply

Yes.

 

You must be logged in to post in the forum