About Caching

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Zugschlus
Regular
Posts: 139
Joined: Sun Feb 05, 2006 12:54 am
Location: St. Ilgen, Germany
Contact:

About Caching

Post by Zugschlus »

Hi,

when the cache is activated and one changes plugin configuration, it is (sometimes or always?) necessary to have s9y re-build cached entries. This is particularly annoying for a large blog since (a) it takes a lot of time and (b) a JavaScript message box is opened every other page of entries so it is necessary to click "Ok" like eight times on my moderately sized blog.

Would it be possible to have an option to invalidate or erase the cache and have cached entries re-built when an entry is actually dlivered to a web client for the first time?

Greetings
Marc
--
Marc Haber, St. Ilgen, Germany
https://blog.zugschlus.de/ - nach langer Pause jetzt wieder online
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: About Caching

Post by garvinhicking »

Hi!

The cache only affects entry body + extended body. So you only need to recreate the cache when you remove or install a plugin that effects those. That usually only are textmarkup plugins like bbcode, wikimarkup etc.
Would it be possible to have an option to invalidate or erase the cache and have cached entries re-built when an entry is actually dlivered to a web client for the first time?
The problem is that then the blog would need to decide whether an entry is up to date or not. But the blog does not keep track of which plugins you add or remove, so it would never know when to recreate a cache for an existing cached item.

If you would remove all cache items and leat it only rebuild when an entry is viewed and has no cache yet, that would work of course. It just needs to be coded.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Zugschlus
Regular
Posts: 139
Joined: Sun Feb 05, 2006 12:54 am
Location: St. Ilgen, Germany
Contact:

Re: About Caching

Post by Zugschlus »

garvinhicking wrote: If you would remove all cache items and leat it only rebuild when an entry is viewed and has no cache yet, that would work of course. It just needs to be coded.
Can you please add this to a wish list?
--
Marc Haber, St. Ilgen, Germany
https://blog.zugschlus.de/ - nach langer Pause jetzt wieder online
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: About Caching

Post by garvinhicking »

Hi!

If you add it it yourself here:

http://sourceforge.net/tracker/?group_i ... tid=542825

then you will be notified when it is implemented. :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply