[serendipity_event_entryproperties] still cached output?

Found a bug? Tell us!!
Post Reply
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

[serendipity_event_entryproperties] still cached output?

Post by bernd_d »

I have used serendipity_event_entryproperties a while ago to cache entries...but after a few problems with caching i removed the plugin completely.

But now i mentioned, if i modify an old entry, it isn't changed in frontend even if i clean up templates_c and browser-cache.

Could it be, that field ep_cache_body from database is still used, even if the plugin is removed or disabled? Would be an ugly bug.

How can i fix this problem for the moment? Simply delete every ep_cache_* from database?
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [serendipity_event_entryproperties] still cached output?

Post by yellowled »

bernd_d wrote:if i modify an old entry, it isn't changed in frontend even if i clean up templates_c and browser-cache.
Are you 100% sure you're not behind some kind of (caching) proxy or something? I seem to recall similar issues with your blog in the past on your end which I could never reproduce, which could indicate some kind of caching mechanism in your network …

YL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: [serendipity_event_entryproperties] still cached output?

Post by garvinhicking »

Hi!

Did you completely remove the entryproperties plugin, or simply disabled the cache option? Since caching is somewhat coded into the core itself, when the plugin is removed, it coulud be that the cache is somehow still used; but if the plugin is active and caching disabled, I think this shouldn't happen.

I'm sure we can get to fix this somehow :)

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/
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: [serendipity_event_entryproperties] still cached output?

Post by bernd_d »

yellowled wrote:Are you 100% sure you're not behind some kind of (caching) proxy or something?
No proxys (as far as i know), different browsers, different networks (home, work). Don't know what else i could do. The current problems with modfied entries always has gone after i deleted ep_cache_* for the modified entry. Until now i didn't delete the complete database so it could be posible to reproduce it.
garvinhicking wrote:Did you completely remove the entryproperties plugin, or simply disabled the cache option? Since caching is somewhat coded into the core itself, when the plugin is removed, it coulud be that the cache is somehow still used; but if the plugin is active and caching disabled, I think this shouldn't happen.
I've removed it completely. Before this, i only disabled caching for a few days/weeks because of some strange issues i never could reproduce finaly.



...and for booth of you, i have made some screenshots from backend and frontend for this entry: http://bernd.distler.ws/archives/1273-F ... chten.html
backend
backend
2012-12-28 12 28 15.png (44.03 KiB) Viewed 7591 times
frontend
frontend
2012-12-28 12 30 47.png (81.86 KiB) Viewed 7591 times
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: [serendipity_event_entryproperties] still cached output?

Post by kleinerChemiker »

I think, this is a very old problem, had it about 2.5 years ago (http://board.s9y.org/viewtopic.php?f=10&t=16564) No real solution, only to remove the cached results.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: [serendipity_event_entryproperties] still cached output?

Post by garvinhicking »

Hi!

the short fix would be a SQL query:

Code: Select all

DELETE FROM serendipity_entryproperties WHERE property LIKE 'ep_cache_%'
That would delete the cache completely (it could be regenerated, you don't lose anything really).

I'll try to set this up to reproduce the issue on my server; but now I'm away for the next few days, so that might take some time
# 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/
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: [serendipity_event_entryproperties] still cached output?

Post by bernd_d »

Thanks in advance :)
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: [serendipity_event_entryproperties] still cached output?

Post by Timbalu »

garvinhicking wrote:the short fix would be a SQL query:

Code: Select all

DELETE FROM serendipity_entryproperties WHERE property LIKE 'ep_cache_%'
That would delete the cache completely (it could be regenerated, you don't lose anything really).

I'll try to set this up to reproduce the issue on my server; but now I'm away for the next few days, so that might take some time
Garvin, did you find time to already investigate this issue and isn't this something we should fix in core and also maybe for 1.7?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: [serendipity_event_entryproperties] still cached output?

Post by Timbalu »

Bernd, the uninstall cache purge is simple and should go through, if you have cache = true = enabled in your entryproperty plugin options. If not, the purge will not take effect.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: [serendipity_event_entryproperties] still cached output?

Post by bernd_d »

So, it seems to be a bug. Cache should always be cleaned, even if Caching has been disabled before.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: [serendipity_event_entryproperties] still cached output?

Post by Timbalu »

;-)
No. It's a feature, ... whyever... entryproperties - like Garvin said - is somehow "...coded into the core itself, ..." and still used when the plugin is removed ... until you know what you are doing...
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
onli
Regular
Posts: 2828
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: [serendipity_event_entryproperties] still cached output?

Post by onli »

Timbalu wrote:- is somehow "...coded into the core itself, ..." and still used when the plugin is removed ...
Sounds like a bug to me ;)

Besides, if the plugin really only cleans the cache iff the cache is enabled in the plugin, this is a bug on its own and probably easy to fix (just remove the if checking $cache).
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: [serendipity_event_entryproperties] still cached output?

Post by garvinhicking »

Hi!

Yeah, this can definitely be regarded as a bug. I only wanted to say it's more complex, because it's inside the core where entyrproperties are fetched, and that would need to be removed somehow. So it's just a bit complex and only affects a very small scenario. If someone would like to dig into it, of course I'd love a fix for this :)

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